mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5280] [bug]: Hard reload required everytime when I login on my self hosted AIO container #2018
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#2018
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 @Shivangi0503 on GitHub (Jul 26, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5280
Originally assigned to: @mirarifhasan on GitHub.
Is there an existing issue for this?
Platform
Web App
Browser
Chrome
Operating System
Linux
Bug Description
Issue
When I go to my selef hosted URL, I have to hard reload everytime to see all my workspaces
I thought hard reloading is only the 404 issues that we get when trying to login via google for example
but seems that I and my team have to constantly hard reload to work on things that matters.
Stack Overview
Hoppscotch AIO Docker Image: hoppscotch/hoppscotch
AWS EC2 (Amazon Linux 2)
NGINX: Installed on host to reverse-proxy requests
Docker: Used to run the all-in-one container
Google OAuth: Used for login (email whitelisting via GCP)
PostgreSQL: Hosted externally via Amazon RDS
Deployment Type
Self-hosted (on-prem deployment)
Version
No response
@mirarifhasan commented on GitHub (Jul 26, 2025):
Hey @Shivangi0503
Could you please make a short video showing what the UI looks like when you visit your self-hosted URL (along with the Network tab open)? Also, include what happens after you hard reload (again with the Network tab visible).
If any API throws an error, it would be helpful if you could expand the Response tab of that request and show us the exact error.
@Shivangi0503 commented on GitHub (Jul 29, 2025):
@mirarifhasan
so on normally opening the self hosted url, the graphql path throws an error cause it takes the old value, you can see in the network tab.
I then did hard reload, which is taking the new configured values. and then I can see all my workspaces etc.
https://github.com/user-attachments/assets/7beb14b2-a568-40aa-9830-35d165f864e6
@jamesgeorge007 commented on GitHub (Aug 4, 2025):
Hi, could you try clearing your service worker cache and reloading the app to see if the issue is resolved?
@Shivangi0503 commented on GitHub (Aug 5, 2025):
@jamesgeorge007 it did not work,
also it's not just about the graphql path, but for example, we have to hard reload the app everytime, if we (me and my team) login, select "Google" it throws 404 here there was no error thrown
https://github.com/user-attachments/assets/c328e69b-8bc3-423a-b1c8-c91c66030b7f
and after I logged in with my organization email and password, it again gives 404 and only works if I hard reload the chrome
@mirarifhasan commented on GitHub (Aug 6, 2025):
Hi @Shivangi0503,
When you logged in via SSO and encountered the 404 error, without refreshing the browser, could you please confirm if any
/graphqlAPI calls returned an "Unauthorized" response under the Response tab in the Network tab of DevTools?Also, did you notice any error logs in the backend container during that time?
Could you also let me know which Hoppscotch version you're currently using?
Lastly, could you share the values you've set in your
.envfile for the following?And your Nginx config, if possible.
Thanks!
@leifb commented on GitHub (Sep 2, 2025):
Hi!
We were having the same issue, but found a workaround.
Disabling the service worker
sw.jsin the browsers dev tools temporary fixes the issue. But this works only until the service worker is started again. It can be disabled under theApplicationsection of the dev tools:We were able to permanently "disable" the service worker using our apache config:
I don't know the nginx equivalent for that, but you just need to make sure that
/sw.jsdoes not return anything useful.Note that after disabling the service worker via the proxy config, all users need to disable the service worker manually. Once both is done, we can reliably login.
And just to be sure, here the info requested by @mirarifhasan :
I did not see any
404or other errors. All requests were200.Yes:
and:
2025.8.0, and 2025.4.2
Hope this helps!
@mirarifhasan commented on GitHub (Oct 15, 2025):
@leifb
When you encountered this issue, did you notice any high CPU or memory usage?
This error typically occurs when the backend server is unavailable.
@leifb commented on GitHub (Oct 15, 2025):
@mirarifhasan I did not notice anything like that, but I also didn't check. Do you want me to look into that? Our hack has been working fine this far, so I don't really feel the need to change anything.
@mirarifhasan commented on GitHub (Oct 16, 2025):
No worries at all @leifb — if everything’s working fine, there’s no need to check further. Thanks for confirming!