-
-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Describe the bug
It looks like embedded tweets fail when the account goes private. We use Netlify and our build broke.
I know the person who had made the tweet and she did go private for a bit right before we got the error.
We saw this in the logs:
ERROR 2022/10/31 16:38:49 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?hide_thread=1&id=1334188913724850177": Failed to retrieve remote file: Forbidden, body: "{"error":"Sorry, you are not authorized to see this status.","request":"\/1\/statuses\/oembed.json?hide_thread=1&id=1334188913724850177"}"
To Reproduce
Steps to reproduce the behavior:
- Embed a tweet
- Set the Twitter account to private
- See error
Expected behavior
Something less brittle. I think I'd probably expect it to just not display the tweet but log something.
On a related topic, I expect more people will be deleting accounts too with everything happening there at Twitter, too. Not sure how the code handles that.