mattn / bsky

A cli application for bluesky social
297 stars 33 forks source link

Post a message successfully even if bsky fails to get thumbnail of link card #21

Closed mkyutani closed 8 months ago

mkyutani commented 9 months ago

When the og:image URL returns a status code other than 200, as in the case of https://www.mof.go.jp/index.htm, bsky is unable to post the message.

$ bsky post https://www.mof.go.jp/index.htm
failed to create post: XRPC ERROR 400: InvalidMimeType: Referenced Mimetype does not match stored blob. Expected: */*, Got: text/plain; charset=utf-8

In such instances, bsky should bypass to embed the og:image and proceed to post the message successfully.

mattn commented 8 months ago

Thank you