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

AuthPass Cloud confirmation times out too quickly #259

Closed
MountainX opened this issue Aug 22, 2021 · 3 comments
Closed

AuthPass Cloud confirmation times out too quickly #259

MountainX opened this issue Aug 22, 2021 · 3 comments

Comments

@MountainX
Copy link

Android logs related to https://forum.authpass.app/t/what-is-the-provider-of-org-freedesktop-secrets-for-kde-plasma-5/162
logs.md.txt

@hpoul hpoul changed the title AuthPass Cloud confirmation times out too quickly (and Google ReCaptcha is a poor experience) AuthPass Cloud confirmation times out too quickly Aug 22, 2021
@hpoul
Copy link
Collaborator

hpoul commented Aug 22, 2021

Thanks for the logs - just to make sure - in the end you were able to authenticate correctly, so the 404 is not a permanent error?
In which time zone are you? I think the log timings are in local time 🙄 .. Maybe I can compare it to what happened on the server.

Right now I still can't quite figure out how there can ever be a 404.. this should only happen when the token is either missing in the request or invalid. There is not even a timeout or anything.. the client should always receive either a created or confirmed response.. 🤔️

@authpass authpass deleted a comment from LinThonax Aug 24, 2021
@hpoul
Copy link
Collaborator

hpoul commented Aug 27, 2021

fyi - I've now figured out where the 404 comes from 🙄 seems to be more of a configuration error on the server side.
There was a connection timeout between the public http server and the backend. And for some reason the http server tried to display a proper error page, and this error page did not exists, so it returned a 404 instead of a 500.

Does not really solve the problem, but at least it explains the not found error. Although connection errors are even harder to debug 😂

hpoul added a commit that referenced this issue Aug 27, 2021
@hpoul
Copy link
Collaborator

hpoul commented Aug 27, 2021

I've now improved the UI a bit..

  1. added a progress indicator, so the user knows that something is happening
  2. the resend button will only show after 30 seconds, not after 3 seconds
  3. There is another button to trigger a check
  4. I've also improved the backend - if the frontend server can't connect to the backend it should retry.. if it still fails, a internal server error will be returned, instead of a not found.

Screen Shot 2021-08-27 at 13 54 03

@hpoul hpoul closed this as completed Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants