Open iznaut opened 4 days ago
@iznaut Unfortunately 1 MB is the limit currently imposed by the API see https://docs.bsky.app/docs/advanced-guides/posts#images-embeds and this discussion https://github.com/bluesky-social/atproto/discussions/1740
Sorry, I should have added more context - I understand that it's a Bluesky limitation, but it would be nice if the error could be handled more gracefully?
I'd be fine if it just skipped over these tweets, but right now it ends the process completely so it's impossible to finish my import.
Sorry, I should have added more context - I understand that it's a Bluesky limitation, but it would be nice if the error could be handled more gracefully?
I'd be fine if it just skipped over these tweets, but right now it ends the process completely so it's impossible to finish my import.
Ok now it's clear, until the library is stable I preferred this approach so that it would stop and I could analyze the errors in detail. While I evaluate how to handle these cases, you can continue the import using the MIN_DATE parameter, setting it to a date a few seconds more recent than the tweet you want to skip.
Ok now it's clear, until the library is stable I preferred this approach so that it would stop and I could analyze the errors in detail. While I evaluate how to handle these cases, you can continue the import using the MIN_DATE parameter, setting it to a date a few seconds more recent than the tweet you want to skip.
I actually tried just that when it first failed, haha. It got a few more tweets in before crashing on another big image and I decided to give up for the moment.
Thinking about it again, though - since this is using the local Twitter archive on my machine, I could probably just try to compress all the large images before running it again? 🤔
Another idea I might suggest is putting a timeout on tweets with delays, so if it’s holding up the script it doesn’t just put it in stasis. Two minutes seems like a reasonable timeout period.