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

Error handing issue when reconnecting with expired session token #227

Open
guntarsbeetroot opened this issue May 24, 2024 · 1 comment
Open

Comments

@guntarsbeetroot
Copy link

Package: 0.15.9
class: HTTP.cs
method: public async Task Request
Conditions: using secure protocol only

Problem: In case of expired reconnection token, the error should return : "Reconnection token invalid or expired". But instead, it tries to use unsecure protocol and completely forgets about original error message and returns : " Unexpected end of JSON input".

It would be nice to have this fallback optional or the original error.

Screenshot 2024-05-24 at 15 36 10
@endel
Copy link
Member

endel commented May 24, 2024

Hi @guntarsbeetroot, thank you for reporting. This behaviour of switching from secure to insecure protocol must be removed soon. If you can send a PR I really appreciate it, I'll be able to check this out only next month I think.

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