mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #4700] [bug]: Frontend GraphQL and Backend API calls not using .env URL values with AIO Deployment #1751
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1751
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jordan-Eckowitz on GitHub (Jan 27, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4700
Is there an existing issue for this?
Current behavior
I have configured my Hoppscotsch environment to use the AIO (all-in-one) approach. I have used docker compose to start Hoppscotsch and a local Postgres DB.
My
HOPP_AIO_ALTERNATE_PORT=80and my docker compose is forwarding everything from port80to3000in my local environment (referenced below).The
.envfile frontend config has been updated to use the AIO sub-path approach. Even though I have updatedVITE_BACKEND_GQL_URLandVITE_BACKEND_API_URLvalues it looks like the frontend is still using the defaultlocalhost:3170URL (see screenshot below for network calls to fetch graphql data on load as well as the logout operation).Is there something I'm missing?
Steps to reproduce
provided above.
Environment
Production
Version
Local
@Jordan-Eckowitz commented on GitHub (Jan 28, 2025):
I've discovered that if I Open up developer tools and do a
Hard Refreshthen it pulls through the correct URL. But, if I refresh the page the usual way, or open the client in a new tab, then its back to the same issue.Also, I've tried deploying the client and I'm seeing the exact same problem.
@BrianLakstins commented on GitHub (Feb 7, 2025):
I'm seeing the same behavior with the same fix (hard refresh uses environment variables) using docker compose with 3 containers and images 2025.1.1 and Firefox browser.
Tried in Edge browser and it worked fine.
I tried clearing cookies, cache, and localStorage on Firefox, but it still kept trying to access the backend as http://localhost:3170 when first loading.
@L3o-pold commented on GitHub (Apr 15, 2025):
It's the cache worker, you can clear it on Chrome using devtools > Application > Right clic on Cache Storage > Delete