Linus2punkt0 / bluesky-crossposter

An app for crossposting your posts from bluesky to twitter and mastodon
108 stars 23 forks source link

Failed to resolve 'https' ([Errno -2] Name does not resolve) │ #28

Closed benborges closed 11 months ago

benborges commented 1 year ago

So this has been running in the cloud for a bunch of hours, but I see errors and I'm wondering if this is again my setup or a problem in the code ?


  25/09/2023 07:58:27: Uploading image /images/ekdnmblhcs.jpg                                                                                                                                                                               │
│   25/09/2023 07:58:27: Could not complete request: HTTPSConnectionPool(host='https', port=443): Max retries exceeded with url: /api/v1/media (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f4606cfe2d0   │
│   >: Failed to resolve 'https' ([Errno -2] Name does not resolve)"))                                                                                                                                                                        │
│   25/09/2023 07:58:27: Adding to database: {"skeet": "bafyreiayhnzm7suvzf2rwucsfc3535hosppfhc3udihzvgde3eui6dhycm", "ids": {"twitterId": "", "mastodonId": ""}, "failed": {"twitter": 1, "mastodon": 1}}                                    │
│   25/09/2023 07:58:28: 429 Too Many Requests                                                                                                                                                                                                │
│   Too Many Requests                                                                                                                                                                                                                         │
│   25/09/2023 07:58:28: Uploading image /images/rqfeinkjdh.jpg                                                                                                                                                                               │
│   25/09/2023 07:58:28: Could not complete request: HTTPSConnectionPool(host='https', port=443): Max retries exceeded with url: /api/v1/media (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f4606cfd3d0   │
│   >: Failed to resolve 'https' ([Errno -2] Name does not resolve)"))                                                                                                                                                                        │
│   25/09/2023 07:58:28: Adding to database: {"skeet": "bafyreicenp4stzwzpisil6hqmugglvuhwxgnlksy2tlrybonmq6npccqv4", "ids": {"twitterId": "", "mastodonId": ""}, "failed": {"twitter": 1, "mastodon": 1}}                                    │
│   25/09/2023 07:58:28: Saving new database                                                                                                                                                                                                  │
│   25/09/2023 07:58:28: Deleting local images  

It seems there is two error here : the failed to resolve HTTPS connection and a 429 too many requests.

the API access I have is this :

image

the activity on twitter is not really mirrored, meaning, there is more posts on the bluesky side at the source than on X but maybe this is due to some of https connection failing and then the post does not get crossposted ?

Linus2punkt0 commented 1 year ago

Is it posting some but not all posts to twitter? Is it specifically posts with images that are failing, or do text posts also fail? And finally, at what interval are you running the poster?

benborges commented 1 year ago

Correct, it was posting some but not all posts I think so indeed, images posts are failing, post with just text+link appear to go fine

Interval

image

Linus2punkt0 commented 1 year ago

Since twitters API-updates uploading images requires using another API method than sending posts (it's a whole thing), and it seems that uses https. Not sure what exactly is needed for that to work, pinging my docker guy: @Jickelsen

Linus2punkt0 commented 1 year ago

I does seem to fail when uploading to mastodon as well though, so might be another issue.

benborges commented 1 year ago

Correct, it was posting some but not all posts I think so indeed, images posts are failing, post with just text+link appear to go fine

Interval

image

I have lowered to last 1h instead of 12 and spaced out to one check in the last hour, i'll see if that help

Linus2punkt0 commented 12 months ago

Has the issue persisted or does it seem to be resolved?

benborges commented 11 months ago

they persist :

image

Linus2punkt0 commented 11 months ago

Okay, so it's just mastodon failing now, it seems? And still only image posts?

benborges commented 11 months ago

I'm not using mastodon, just crossposting to twitter.

yes for images posts, text seems to always go through