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

409 unknown error on log in #398

Closed
Narzaru opened this issue Nov 13, 2023 · 4 comments
Closed

409 unknown error on log in #398

Narzaru opened this issue Nov 13, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Narzaru
Copy link

Narzaru commented Nov 13, 2023

Config

version: 0.49.2

accounts:
  admin:
    admin: true
    password: admin

open_browser_at_start: false
http_port: 80
localhost_admin: false

To Reproduce

  1. run in the CLI: ./hfs --config ./config.yaml --log ./logs/
  2. try to log in with the following credentials: username - admin, password - admin

Describe the bug

  • response 409 unknown error
  • in the log files 401...401 409

Expected behavior

  • log in success

Environment:

  • OS [Ubuntu 22.04.1 LTS]
  • HFS Version [0.49.2 (latest release)]
  • Browser [chrome 119.0.6045.124]
@Narzaru Narzaru added the bug Something isn't working label Nov 13, 2023
@Narzaru
Copy link
Author

Narzaru commented Nov 14, 2023

I checked, it works at 0.49.0 I did not change the config, except version. The hfs launch command also did not change.

@Narzaru
Copy link
Author

Narzaru commented Nov 14, 2023

Okay, I apologize. It started working on 0.49.2, I don’t know what changed, but it works now.

@Narzaru Narzaru closed this as completed Nov 14, 2023
@rejetto
Copy link
Owner

rejetto commented Nov 15, 2023

hey, with error 409 hfs displays this error at login: Cookies not working - login failed.
If I recall correctly, this happens if you log in with https (the cookie is created), and then later try to login with http. The browser doesn't allow http to read the cookie created with https, and also forbid overwritten.
This makes our login to fail, because cookie is not working.
A possible solution would be for me to use 2 different cookies, but at the moment I'm not sure ask this to my framework. It rarely happens, anyway, so I postponed it.

I think you solved not because you updated but because your cookie was deleted.

@rejetto
Copy link
Owner

rejetto commented Nov 15, 2023

I'm not sure ask this to my framework

i've managed to do it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants