Skip to content
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

[BUG] /whoami endpoint failing #265

Open
JMStudiosJoe opened this issue Oct 5, 2022 · 4 comments
Open

[BUG] /whoami endpoint failing #265

JMStudiosJoe opened this issue Oct 5, 2022 · 4 comments
Labels
backend bug Something isn't working

Comments

@JMStudiosJoe
Copy link
Collaborator

Describe the bug
A clear and concise description of what the bug is.
when trying to login the web app frontend checks the /whoami endpoint and that is failing for all pages

To Reproduce
Steps to reproduce the behavior:

  1. Go to /login
  2. attempt to load main page
  3. should see error in the dev console or the terminal where running from

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@alexjball
Copy link
Member

This works locally. At some point we renamed the /test endpoint to /whoami. The frontend was deployed with this new path, but the backend wasn't. So login fails on the dev deployment as it tries to access the missing route. Redeploying the dev api should fix the issue.

@rosyntow
Copy link
Collaborator

I was not able to reproduce the issue locally. Here is the screenshot
npdc_login

@mikeyavorsky
Copy link
Collaborator

Testing on https://dev.nationalpolicedata.org/login in Safari, with credentials used previously, the first time I try to login, it fails. The second time I try to login, it succeeds.

@mikeyavorsky
Copy link
Collaborator

To reproduce: in Safari, Develop > Empty Caches. Load the page, log in with good credentials and you will see an error message. Click login again, and it will succeed.

@mikeyavorsky mikeyavorsky added bug Something isn't working backend labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants