mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3349] [bug]: Hard trouble with refreshing and admin dashboard. Software is not usable. #1118
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#1118
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 @pthoelken on GitHub (Sep 13, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3349
Originally assigned to: @balub on GitHub.
Is there an existing issue for this?
Current behavior
We're getting hard in trouble with the whole Hoppscotch application because we have to refreshing all pages a lot till it works. This behavior is coming up on all computers and browsers in our team. We're working in a self-hosted environment behind a reverse proxy (apache). Check the configuration below.
Apache Configuration Snippet
You can checkout our docker-compose.yml file below. We're using our own registry because we're scanning all incoming images additionally.
Steps to reproduce
Users Dashboard
After some refreshing and manual navigating to https://my-server-url and also refreshing the pages shows me as logged in and I can see my profile and workspaces.
Admin Dashboard
No more words needed I think :) also here the refreshing trouble!
Environment
Production
Version
Self-hosted
@balub commented on GitHub (Sep 13, 2023):
@pthoelken Could you share the server logs with us when you encounter the
404orInternal server errors?@pthoelken commented on GitHub (Sep 13, 2023):
For now I can't reproduce the "internal server error". Otherwise you can give me a path where the logs are saved into the container. I can fetch the logs from it and post it here.
@pthoelken commented on GitHub (Sep 13, 2023):
For case in 404, I've reproduce this right now, but I can't see any logs in "docker-compose logs -f" while the 404.
@pthoelken commented on GitHub (Sep 13, 2023):
The only docker-compose logs entries, what I get when a user is logged in (maybe the first time) is this following. But the refresh struggle was also there before I got this error below.
@pthoelken commented on GitHub (Sep 13, 2023):
@balub We're build this image manually by the prod.Dockerfile into the branch 2023.8.1. The only file, what we're changed was this mailer.module.ts because we have to change something for our mailserver (what works perfectly)
So, of course, we're also changed the .env file with the new parameters.
@pthoelken commented on GitHub (Sep 13, 2023):
So, another bug from Console is this here, when I click on "Team Edit" in the right top corner @balub. I'm a lil bit confused about the bunch of errors in hoppscotch in our scenario.
@joeljstephen commented on GitHub (Sep 13, 2023):
@pthoelken Regarding the Admin Dashboard, I tried to reproduce this behaviour on my end but I am unable to reproduce this issue. Hence I would require few details to identify the problem. Does the English translations load after a refresh or does it remain as the i18n string even after refreshing?
@pthoelken commented on GitHub (Sep 13, 2023):
@JoelJacobStephen - the i18n errors are still there after refreshing the page. I getting this error also with the images from dockerhub.com/u/hoppscotch/hoppscotch:latest - just for your informations. :-)
@pthoelken commented on GitHub (Sep 15, 2023):
Any new informations / updates in this case @balub @JoelJacobStephen? Currently we're in a decision process about which software we're should use and maybe you can help us to use your product.
@balub commented on GitHub (Sep 15, 2023):
@pthoelken I apologise for the delay, the inability to replicate the issue is proving to be a blocker in trying to identify what the issue actually is. The
Error: user_settings/settings_already_existserror being thrown in the backend is not of concern this is a known behaviour and is not an issue. I ask that you give us a bit more time to figure this out.@pthoelken commented on GitHub (Sep 15, 2023):
@balub - Thanks for your response. Will your fix solve the page-refresh-struggle as well?
@balub commented on GitHub (Sep 15, 2023):
Yup, we are looking into solving all the issues pointed out here.
@pthoelken commented on GitHub (Sep 15, 2023):
Sound perfect. Can you guess how much time will it take? Like 1 week or more? :)
@balub commented on GitHub (Sep 15, 2023):
We are looking into this issue as a priority and rest assured getting it resolved is of utmost importance right now.
@balub commented on GitHub (Sep 15, 2023):
@pthoelken could you share with us the graphql query that is sent to the backend server when you try to edit a team that triggered the backend to throw the
Error: bug/team/no_team_iderror earlier?@pthoelken commented on GitHub (Sep 15, 2023):
@balub - how / where can I grab this? I do this out from the UI in the right top corner (edit Team)
@balub commented on GitHub (Sep 15, 2023):
Could you simply just trigger the operation in the app and then share the graphql query being sent from the network tab.
@pthoelken commented on GitHub (Sep 15, 2023):
Here is one of these
I don't know which do you mean exactly bc their a buch of graphql requests.
@pthoelken commented on GitHub (Sep 15, 2023):
Other topic; is there a configuration or other way to disable this spammy log entries in my container?
This comes up every second.
@pthoelken commented on GitHub (Sep 15, 2023):
@balub with the chrome extension "GraphQL Network" i found the request:
GetTeam
GetPendingInvites
@balub commented on GitHub (Sep 15, 2023):
No
teamIDis being sent, can you check the earlier queries where to see if data was fetched properly. TheGetMyTeamsquery essentially.@pthoelken commented on GitHub (Sep 15, 2023):
Yep usually the teams will be fetechd. The error comes up when I click on "Edit Teams" only.
@balub commented on GitHub (Sep 15, 2023):
@pthoelken the error you encounter when you click on "Edit Teams" usually happens when the modal first appears, however, I think the queries go through successfully after a little while if the modal is left open. We have identified this erroneous behaviour and will fix it in the meantime can you confirm the same on your end?
@pthoelken commented on GitHub (Sep 15, 2023):
yep. I can confirm.
@pthoelken commented on GitHub (Sep 19, 2023):
Hey @balub, any updates for me in this case? Best regards.
@balub commented on GitHub (Sep 20, 2023):
Hey @pthoelken , we've identified some issues and are currently working on fixing them.
@Zer0S2m commented on GitHub (Sep 22, 2023):
Hey @balub, is there any news on this open issue?
@pthoelken commented on GitHub (Sep 22, 2023):
He told us two days ago that the team is working on this issue :-)
@pthoelken commented on GitHub (Sep 27, 2023):
As I can see, some PR are created releated to this issue. Is there a way to define a week / date which the whole issue is completed? @balub
@pthoelken commented on GitHub (Oct 6, 2023):
Any updates @balub ?
@pthoelken commented on GitHub (Oct 27, 2023):
@balub and team ... since multiple weeks no response? The bug is still there - check out the attached video.
https://github.com/hoppscotch/hoppscotch/assets/12643853/604303a0-8254-45b6-ab9e-b555954e20f4
@vine-mxm commented on GitHub (Jan 18, 2024):
@pthoelken did you manage to solve this? i'm facing the exact same issue.
i'm using hoppscotch-aio self hosted on a kubernetes cluster.
@0xdnL commented on GitHub (Jun 19, 2024):
bump, I'm also experiencing this behavior self-hosted on kubernetes and having microsoft as auth_provider
@pthoelken commented on GitHub (Jun 19, 2024):
Check your callback URI in the env .. in my case the URI was inserted twice. Can you paste your env without sensible data?
@pthoelken commented on GitHub (Jun 19, 2024):
Sorry for my late reply. Yes in our environment it is solved. The cause was a double URI entry in the env file.
@0xdnL commented on GitHub (Jun 19, 2024):
after login I don't get to see the login page but get redirected to /v1/auth/microsoft and 404
but when I clear the site-data and refresh I'm logged in again
@pthoelken commented on GitHub (Jun 19, 2024):
Sorry, I mean the REDIRECT_URL + WHITELISTED_ORIGINS from the .env
Maybe you can provice the whole .env file without sensible data?
@0xdnL commented on GitHub (Jun 19, 2024):
partial environment variables
@pthoelken commented on GitHub (Jun 19, 2024):
Our REDIRECT_URL is without the last / in the URL like this.
REDIRECT_URL: "https://hoppscotch.foo.bar"All other variables looks good.
@0xdnL commented on GitHub (Jun 19, 2024):
thanks, I've tested
REDIRECT_URLwithout trailing slash, still 404 to/v1/auth/microsoftclearing site data and refreshing the page leads to a successful login
@pthoelken commented on GitHub (Jun 19, 2024):
So, after clearing browser and site cache the system works fine or still 404 error?
In cases of still 404, can you check the URL in the browser after MS Auth (and call back brings you back to your system (404 page))? So in our cases it was at the time "https://hoppy.foo.bar/hoppy.foo.bar", which was the cause for the 404 failure.
@0xdnL commented on GitHub (Jun 19, 2024):
https://hoppscotch.foo.bar/v1/auth/microsoftand shows 404https://hoppscotch.foo.bar/v1/auth/microsofthttps://hoppscotch.foo.barand a user is logged in@pthoelken commented on GitHub (Jun 19, 2024):
Yep, this was exactly the same behaivor here. In our case it was a typo in the REDIRECT_URI .. after reconfigure this and deleting all cache it works well.
Did you update to the latest version of hoppscotch already?
@0xdnL commented on GitHub (Jun 19, 2024):
the image tags I'm using are:
I've just noticed this access log:
for some reason the url in the browser doesn't show the url parameter
redirect_uri