Ability to set request timeout for the DefaultRestClient #2785
IncontinentCell
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So temporarily I have really slow internet. My bot downloads images from attachments and sends them in a separate message. HttpClient inside of DefaultRestClient would constantly take too long and timeout causing it to not work. I looked into how all of this works underneath and I managed to modify the timeout using this ugly code using reflection.
Would be nice to be able to modify this timeout without doing all of this.
Also another thing I just noticed. Even though this made the message send I now get the following error in the logs:
I imagine that's probably because rate limit didn't expect the sending to take this long haha.
Beta Was this translation helpful? Give feedback.
All reactions