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
After some debugging I am fairly sure that when a media upload fails due to authentication failure, the error message is very obscure because you never try catching if the media is actually successfully uploaded.
The upload_media_to_mastodon function will just return a NULL because its trying to index something in the response that does not exist if the return is not a 200 (httr::content(r)$id)
Therefore the user error looks like so:
Hi.
After some debugging I am fairly sure that when a media upload fails due to authentication failure, the error message is very obscure because you never try catching if the media is actually successfully uploaded.
The
upload_media_to_mastodon
function will just return a NULL because its trying to index something in the response that does not exist if the return is not a 200 (httr::content(r)$id
)Therefore the user error looks like so:
I think its very worth adding a check if the image was actually uploaded before proceeding.
The text was updated successfully, but these errors were encountered: