McKael / madonctl

CLI client for the Mastodon social network API
MIT License
193 stars 9 forks source link

Updating the avatar fails with error 500 #14

Closed bhuron closed 6 years ago

bhuron commented 6 years ago

Maybe because the API doesn't mention base64 encoding for updating the avatar and header but multipart/form-data (https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#updating-the-current-user) ?

From the API : "When sending binary data, such as files, Mastodon expects clients to use the multipart/form-data MIME type. This applies to media attachments, account avatars and account headers.”

McKael commented 6 years ago

I can reproduce the issue, it doesn't work anymore.

I'll have a look, thanks for the report!

McKael commented 6 years ago

Hm, the issue has been closed automatically because of my commit message; @bhuron can you confirm it solves your problem? (Works for me AFAICS...)

If it does I'll probably release a minor update of the Madon library.

bhuron commented 6 years ago

Yes, it works, now. Thanks!