mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #3376] [bug]: Unable to log in #1126
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#1126
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 @mgmorcos on GitHub (Sep 21, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3376
Is there an existing issue for this?
Current behavior
I have configured Google SSO. When I press the login button, and sign in with my Google account, I expect to be logged in to Hoppscotch. This has only worked one time. The rest of the time I am either taken back to the home screen and still not logged in, or I get an Unauthorized 401 error from the API. I am using the latest version of the AIO image with Docker Compose.
Steps to reproduce
.envEnvironment
Production
Version
Self-hosted
@mgmorcos commented on GitHub (Sep 21, 2023):
Clearing cookies resolves the issue. Clearing cookies is necessary every time the server is restarted. Is there a way to invalidate sessions on the server side, so less technical users don't need to be asked to clear cookies?
@mgmorcos commented on GitHub (Sep 21, 2023):
So far the best option I have found is to change the session secret before every server restart. Then login works fine.
@balub commented on GitHub (Sep 21, 2023):
@mgmorcos if the issue still persists, could you share the backend logs when the error happens?
@jacoatvatfree commented on GitHub (Sep 22, 2023):
I'm seeing the same behaviour, till now I had to clear site data (in browser application storage). But I will try changing the session secret before reboot as suggested above.
@mgmorcos commented on GitHub (Sep 26, 2023):
The logs are silent when login issues occur. The secret reset is not sufficient for all cases, sometimes clearing LocalStorage is also needed.
@dsole commented on GitHub (Oct 3, 2023):
This could be related or duplicate of #3315
@mgmorcos commented on GitHub (Oct 3, 2023):
My setup is on a single node without load balancing or clustering.
@dsole commented on GitHub (Oct 4, 2023):
I was mainly thinking that even in a single node environment, when the server restarts it will be clearing the server's memory-based session store, so your cookie won't match a session anymore and needs to be cleared.
So the problem of the session being memory-based rather than a persistent method was how they're potentially related.
@skywsp commented on GitHub (Oct 8, 2023):
@dsole When I sign in with eamil, I got the same problem, and clearn cookies not working, what shoud I do...
@Bhupendrsingh commented on GitHub (Nov 2, 2023):
Hi
i am also facing the same issue , are you able to resolve this
@SeptianENC commented on GitHub (Dec 19, 2023):
I have same problem, when i click magic link the browser just refresh but i'm still not login.
does anyone have solution?
@pravindodia commented on GitHub (Feb 11, 2024):
+1 for Email Auth Provider
@carsonbird commented on GitHub (Mar 10, 2024):
So, is the impact of this bug that it is currently impossible to log in to the desktop app? Since at least September '23? I'm on Linux and I've attempted both Email Auth and Github Auth.
@fscaptain commented on GitHub (Mar 17, 2024):
+1
@Teznew commented on GitHub (Mar 20, 2024):
+1
@pravindodia commented on GitHub (Mar 20, 2024):
Please change your enpoints for all from http to https and the login will work fine, its not mentioned in any document but I managed to login with it and it works 100%.
@carsonbird commented on GitHub (Mar 24, 2024):
Hmm. Tried this, still didn't work. What authentication provider are you using (email, Google, GitHub, etc)?
@pravindodia commented on GitHub (Mar 26, 2024):
I am using email authentication provider,
Are you behind proxy, or are you using ssl directly , because if you are directly using ssl then you have to make sure you have proper ssl ceritficates.
Try to inspect the login response and and log in hopscotch and see what eact error are you getting.
My issue was resolved after adding ssl.
@carsonbird commented on GitHub (Mar 30, 2024):
@pravindodia nope, no proxy. Tried both methods with and without TLS, neither worked.
@pravindodia commented on GitHub (Mar 30, 2024):
Can you check the logs also see what error log you are getting ?
@carsonbird commented on GitHub (Mar 30, 2024):
@pravindodia no errors in the console :p
@pravindodia commented on GitHub (Mar 30, 2024):
@carsonbird What about browser network requests and responses?
@CharkiAbdelillah commented on GitHub (Apr 10, 2024):
@pravindodia hey can you help me pls
@pravindodia commented on GitHub (Apr 11, 2024):
@CharkiAbdelillah what's your issue?
@mohijeet-changejar commented on GitHub (Dec 8, 2024):
is there any workaround? i am still facing same issue it works fine with clearing cookies but not in first attempt, it shows 404 error page like its requesting content that does not exits but when i clear cache and reload page it logged me in.
@Hopp-magis commented on GitHub (Jan 6, 2025):
Hello ! I need help too! I can't sign in i get this {"statusCode":500,"message":"Internal server error"}
@gh0st-offsec commented on GitHub (Mar 5, 2025):
So what's the solution for this? I've this issue....
@abdul-musawwir002 commented on GitHub (Apr 10, 2025):
Hello @Hopp-magis I have the same issue. Did your issue got resolved?
@nooodream commented on GitHub (Jul 25, 2025):
i face the same issue,i use email and http to login, but when i click the email link, it not login in and let me send magic link again
@Hopp-magis commented on GitHub (Aug 1, 2025):
let's check your env file
On Fri, Jul 25, 2025 at 12:14 PM nooodream @.***> wrote: