CodingAleCR / http_interceptor

A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.
MIT License
133 stars 67 forks source link

HandshakeException #119

Open marcodecarolisidt opened 1 year ago

marcodecarolisidt commented 1 year ago

Describe the bug We keep having random exceptions:

[ERROR] 15:27:26 Failed to fetch calling rates, msg: HandshakeException: Handshake error in client (OS Error:
    WRONG_VERSION_NUMBER(tls_record.cc:242))

And it is impossible to know how to fix it

Please complete the following information):

CodingAleCR commented 1 year ago

Taking a look đź‘€ , could you provide a repository that reproduces this issue?

marcodecarolisidt commented 1 year ago

Sorry, I can't it's a private repo.. So we fire some asynchronous API requests when the app starts. And sometimes, some of them fail randomly, and the fetch doesn’t work. I tried to override shouldAttemptRetryOnException to return true, but it doesn't solve the issue

marcodecarolisidt commented 1 year ago

Will a package upgrade to the beta version fix the issue? if yes when will the beta version become stable? thank you 🙏

CodingAleCR commented 1 year ago

Sorry, I can't it's a private repo.. So we fire some asynchronous API requests when the app starts. And sometimes, some of them fail randomly, and the fetch doesn’t work. I tried to override shouldAttemptRetryOnException to return true, but it doesn't solve the issue

It doesn't have to be the exact repository you are working but maybe an example that reproduces the issues?

Will a package upgrade to the beta version fix the issue? if yes when will the beta version become stable? thank you 🙏

I believe that it won't do any difference to change to the beta version. 2.0.0 is a complete rewrite of the library to support multiple request types and scenarios but it also takes a couple of ideas from 1.x so I think you won't see any differences. You could try to see if that solves the issue but as to when this will become stable I can't give you an answer. My day job requires a lot of me so I can't dedicate as much time to Open Source as I'd like. :[

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Aakashcs commented 1 year ago

Any update on this issue @CodingAleCR?

CodingAleCR commented 1 year ago

Not from the library, but just curious, have any tried the solutions proposed in this stackoverflow thread.

stale[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.