You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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