bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
11.09k stars 1.4k forks source link

Question: Why does getBlob lexicon endpoint return Internal Server Error (500)? #5900

Open shahmal1yev opened 3 weeks ago

shahmal1yev commented 3 weeks ago

Steps to Reproduce

  1. Send GET request to: https://bsky.social/xrpc/com.atproto.sync.getBlob
  2. With query parameters:
    • did=[REDACTED]
    • cid=[blob CID]

Attachments

Screenshot From 2024-10-22 11-24-13 Screenshot From 2024-10-22 11-24-15 (2)

What platform(s) does this occur on?

Web (Desktop)

Device Info

Linux shahmal1yev 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux

What version of the app are you using?

1.92.1.355

Additional Information

When attempting to fetch a blob using the com.atproto.sync.getBlob lexicon endpoint, I'm receiving a 500 Internal Server Error.

Expected behavior:

Actual behavior:

nicksahler commented 1 week ago

Did you ever resolve this? I am running into the same issue.

shahmal1yev commented 1 week ago

In a way that I couldn't make any sense of, the problem was solved without me making any changes. I thought they had seen this issue and fixed the problem even though they hadn't responded. Perhaps the issue is that while the docs say the API accepts image/* (all image formats), it might not be able to handle certain image formats. Try using PNG or JPEG - that is, if your issue is related to images.