Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

APIv2 doesn't follow redirects, e.g. for HTTPS #63

Open
CrsiX opened this issue May 14, 2023 · 1 comment
Open

APIv2 doesn't follow redirects, e.g. for HTTPS #63

CrsiX opened this issue May 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@CrsiX
Copy link
Member

CrsiX commented May 14, 2023

When using non-HTTPS server URL for HTTPS-only servers, the redirect is not followed, leading to an unusable API experience. The user should either be notified, or the redirects should be followed automatically.

Example log:
2023-05-14T11:53:48.034006Z [threadpool-daemon-1] [ApiV2Wrapper] 'POST http://runciv.hopfenspace.org/api/v2/auth/#': 301 Moved Permanently (42 ms)

@CrsiX CrsiX added the bug Something isn't working label May 14, 2023
@CrsiX
Copy link
Member Author

CrsiX commented Jun 1, 2023

The detection of the API works smoothly. I suspect that POST requests are not repeated to the new destination (= not following the 301), but they are required for login and other actions.

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

No branches or pull requests

1 participant