-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad Gateway Error with direct link #102
Comments
That's strange. Does this also happen for you on the demo instance? |
So, I tried the link that you provided and it does come up without issue. This makes me think that it has something to do with the setup and reverse proxy I'm using. I'm using NGINX Proxy Manager with no unusual setup, locations, or otherwise. I had "websockets" enabled, but have disabled that. There is no change in the "Bad Gateway" error. |
Hmm... Not sure what's going on. My NPM setup is just like yours and I can't get any direct link to work.
I use cloudflare for my DNS. Is it possible they're putting something into the mix that's hosing things up? |
The |
So, I tried a direct link with public posts and had no issues. The page came right up. I tried it on several different browsers and it worked in each of them. The public posts that I created work without issue. |
i had a similar issue when i sign up with oidc and an user with only 2 char length (pocketbase limitation).. then i uploaded some gfx and i saw them in the database but i couldnt see it in the frontend. even after i fixed the user length the application still faced bad gateway errors at some time/clicks trough the frontend because it wanted to show the uploaded hikes but couldnt connect it to the right user (details) i guess. |
I've been getting this too, i noticed this error only happens when logged in to the site. which i guess makes sense since the log shows it can't obtain the cookie. maybe it's losing the session context on refresh when logged in or something of that nature.
seems like svelte thing. i want to help with a solution to this issue but unfortunately i'm not too familiar with svelte but i found a few links that could be related to the issue
potential solution:
|
that's very interestinggg not sure what's so different. when im on logged in on demo, the trails list doesn't load on refresh but only loads in after i navigate to the home page and then back to trails. in either case it's not a big issue i suppose since not everyone may be experiencing it? it does make sending links to others a bit tricky. i could be completely wrong but my guess is that the cookie/session is set on the home/root possibly and then it loses it on refresh and only re-sets it after going back to the home page? haven't had time to look into from where that session is stored but maybe it needs to be in a global-ish area if it isn't already that is or how it's interacting with the store. but thanks for looking at this and responding so quickly! overall great job with the app and have been loving it so far!
|
Any time I use a direct link to a trail, I get an error saying "Bad Gateway."
For example, when paste
https://example.com/trail/view/vahveq98siviv66
into the address bar, I get the following in the logs:Any idea why it seems to be dumping the cookie. It's acting like I'm not logged in, but I'm definitely logged in and can pull up the trail through the menus. I have no idea why the bad gateway error or what is going on.
Thanks for the help fixing this.
The text was updated successfully, but these errors were encountered: