-
Notifications
You must be signed in to change notification settings - Fork 289
Connecting to homeserver without installed certificates causes bootloop #483
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
Comments
|
oops, I mean |
Ah ok. The client isn't really stuck in an infinite loop but it does retry to send the request for way too long. I remember someone fixing this but I guess it never got merged. The affecting line is here:
The We still probably want to retry this request at least a couple of times, 2-3 times sounds fine. Wei might want to create a new constructor for |
Alright, sounds good! May I tackle this issue or will you guys do? |
Feel free to tackle it. |
Alright, I did some digging and yes the solution is of course just as u suggested to provide a However from just glancing at it it seems weird that the retry limit is set to unlimited in Or is there a good reason against it? |
It's just what we ended up with as a first cut of the retry logic, I don't think it's unlimited it should be what the As mentioned, some constructors for |
Alright, I have a few more questions:
|
Yes, I think all the login methods, the registry method and the version check method should use a short retry. Later on we probably should have a medium retry for the majority of request types and a long retry for the sync loop.
I think the family of 500 errors should be retried as well. |
I provided a PR, looking forward to feedback. I suppose with registry and version check you meant |
Closed by #506. |
Hi, I'm currently working on a small university project using this SDK and I came across a problem without a proper error message.
Describe the bug
Trying to connect to a homeserver without having any certificates installed (bare-bones docker container) causes the Client::new function to enter a infinite loop which does not produce a proper error message.
To Reproduce
I currently don't have to much time, but I would like to add a sample project in the future if needed.
Steps to reproduce the behavior:
Expected behavior
Connection fails with clear error message.
Logs
logs.txt
Desktop:
Rust:
Additional context
As I already mentioned I'm busy this week, but would love to provide a proper test project next week if needed. Also I would be interested in fixing the issue myself, if possible.
The text was updated successfully, but these errors were encountered: