Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null value in column "expanded_url" of relation "tweet_urls_1135540987445600258" violates not-null constraint #179

Closed
0xbrayo opened this issue Dec 2, 2024 · 10 comments
Labels
bug Something isn't working database changes that edit the db

Comments

@0xbrayo
Copy link

0xbrayo commented Dec 2, 2024

Fails with this error:
Error processing Twitter archive: Error inserting tweet_urls_1135540987445600258: null value in column "expanded_url" of relation "tweet_urls_1135540987445600258" violates not-null constraint

@DefenderOfBasic DefenderOfBasic added bug Something isn't working database changes that edit the db labels Dec 4, 2024
@DefenderOfBasic
Copy link
Collaborator

thank you for the report @0xbrayo ! are you able to share your archive with me so we can try and reproduce this? Maybe upload it to drive & share a link here or email [email protected] ?

@0xbrayo
Copy link
Author

0xbrayo commented Dec 4, 2024

Uploaded to google drive. Emailed you the link.

@0xbrayo
Copy link
Author

0xbrayo commented Dec 6, 2024

@DefenderOfBasic Any updates?

@DefenderOfBasic
Copy link
Collaborator

@ri72miieop is looking into it now.

@ri72miieop
Copy link
Contributor

hi @0xbrayo there was an issue with the tweet 1155140493451440129 where it didn't have a field that is required from our side. I think this was some problem with the Twitter export. I removed that tweet and uploaded your archive: https://www.community-archive.org/user/1135540987445600258. Welcome. :)

@0xbrayo
Copy link
Author

0xbrayo commented Dec 6, 2024

Thanks😊

@DefenderOfBasic
Copy link
Collaborator

Thanks @ri72miieop !!

@DefenderOfBasic
Copy link
Collaborator

And thank you @0xbrayo for reporting this!!

@0xbrayo
Copy link
Author

0xbrayo commented Dec 8, 2024

@ri72miieop @DefenderOfBasic can a fix be pushed to the code, subsequent uploads from me or other people might cause the same error. Warn users that some tweets have been dropped due to malformed schema etc. Also I'm assuming we can do updates by requesting archives in the future and uploading those.

@ri72miieop
Copy link
Contributor

yeah, you're right. I think this is pretty rare and I'd like to understand when it happens better, but I could also check later the db to see which tweet_urls are set to empty and this way people no longer get errors moving forward so it's a win-win.

yeah you can update it by re-uploading a more recent archive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working database changes that edit the db
Projects
None yet
Development

No branches or pull requests

3 participants