Open Fyko opened 1 year ago
hmm...
edit: nevermind! i think this has to do with an ongoing outage
I think that it is only the 500 that is related to the outage, the indefinite hang probably still happens.
can we reproduce this with other requests returning 5xx?
The 500 only happened because of the Discord outage. In production, it hangs indefinitely and kube eventually kills the pod.
As mentioned in the issue and repro example, I have no problem executing the query outside of my repro example.
the problem is that it hangs, and it'd be useful to know if it only hangs when it gets 500 on edit guild member endpoint or on any 500s, though the latter would mean it only sometimes halts
for the edit guild member endpoint, does it always hang or has this only happened once? it may be hard to reproduce since we cant simulate an outage
it always hangs, both in production and and when testing locally
Hey,
I've just run the example code, and I was not able to reproduce the bug. I also have created a Discord API "mock" which returns 500 on every request, and the program didn't hang. Also I tried to time out the request, which also didn't cause the program to hang.
Since the issue is now also pretty old, could be that it was fixed silently.
I tested with twilight 15, but also the latest version from main.
Howdy folks! I'm running into this odd issue where, in certain contexts, performing a PATCH Guild Member to change their voice-channel causes the program to hang indefinitely. I cannot reproduce outside of the sample I provided -- the request goes without a hitch.
Reproducable Example
https://gist.github.com/Fyko/f1b6c53843074b4668f9d03097457fcb#file-readme-md
Logs
Trace logs: message.txt
Tokio Console
https://github.com/twilight-rs/twilight/assets/45381083/ba443d08-f3fc-4975-9b74-a5a56231ea30