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
The .upload_file() function fails to authenticate and raises KeyError.
Also this issue would of been easier to diagnose if revolt.http.upload_file had proper HTTP error handling or used response.raise_for_status after its main checks to prevent rouge/unexpected errors.
Describe the bug
The
.upload_file()
function fails to authenticate and raisesKeyError
.To Reproduce
The command below reliably produces the error.
Expected behavior
The file to be uploaded without an authentication error.
Library version
Additional context
Traceback:
HTTP Response:
System information:
The text was updated successfully, but these errors were encountered: