#is this an error twilight returns?

1 messages · Page 1 of 1 (latest)

misty harness
#

im getting a cryptic error message, sadly async backtracing isnt very helpful, but this has happened a few times now, so does twilight 0.15 return an error with this message

request timed out

Caused by:
    deadline has elapsed
left trail
misty harness
#

if u mean twilight standby no

misty harness
#

im using sleep somewhere but when what this deadline mean

#

that function doesnt even return a result nvm

misty harness
#

i checked the repo for all my deps and it seems twilight-http is returning rs Error { source: Some(tokio::time::error::Elapsed), kind: ErrorType::RequestTimedOut, } and Elapsed is only returned by tokio::time::Timeout but i dont know where twilight uses timeouts

novel spade
#

Twilight never returns a tokio error directly. There's a 10 second timeout by default on HTTP requests (configurable)

misty harness
#

why would a request take over 10 seconds??

novel spade
#

You tell me