Skip to content

MastoHttpError: Error processing thumbnail for uploaded media #977

Answered by neet
individual8 asked this question in Q&A
Discussion options

You must be logged in to vote

I didn't notice initially, but apparently, you seem to have forgotten await-ing the conversion from a File to a Blob. Try changing as the snippet below:

const attachment = await masto.v2.media.create({
-  file: photo.blob(),
-  thumbnail: thumbnail.blob()
+  file: await photo.blob(),
+  thumbnail: await thumbnail.blob()
});

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@neet

This comment has been hidden.

@neet
Comment options

neet Sep 2, 2023
Maintainer

Answer selected by neet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants