MastoHttpError: Error processing thumbnail for uploaded media #977
Answered
by
neet
individual8
asked this question in
Q&A
-
|
I stumbled into another error that is unresolved. It seems like Mastodon cannot swallow my image upload. Here's my code: I tried first w/o specifying an thumbnail. And then with an thumbnail not bigger than 750x750 px. Both end up in the same 500 (internal server error). |
Beta Was this translation helpful? Give feedback.
Answered by
neet
Sep 2, 2023
Replies: 1 comment 2 replies
-
|
@neet Is that something than can be fixed? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I didn't notice initially, but apparently, you seem to have forgotten
await-ing the conversion from aFileto aBlob. 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() });