error "HTTP/1.1 404 Not Found\r\n" when trying to tweet with photo
mptpro opened this issue · 3 comments
mptpro commented
Describe the bug
When issuing the follwoing command:
twurl -H upload.twitter.com "/1.1/media/upload.json" -f a.jpg -F media -X POST -t
I get the error:
-> "HTTP/1.1 404 Not Found\r\n"
-> "cache-control: no-cache, no-store, max-age=0\r\n"
-> "content-length: 0\r\n"
-> "x-response-time: 4\r\n"
-> "x-connection-hash: 3ddb7f6ddab864ea7e81773f8b44750773be729c312c99ff84455776fbfb1b0d\r\n"
-> "date: Sat, 02 Apr 2022 09:02:52 GMT\r\n"
-> "server: tsa_a\r\n"
-> "connection: close\r\n"
-> "\r\n"
reading 0 bytes...
Desktop (please complete the following information):
- OS: [e.g. iOS] : Pop_Os 22.04
- twurl: 0.9.6
- ruby: 3.0.2
Additional context
I CAN post a tweej without an image.
pdjakow commented
Same problem here.
@mptpro did you found solution?
What I found is that upload.twitter.com is not responding, while it is responding on my other remote machine.
...
However it's not the case: after turning VPN off, upload.twitter.com is responding, but I have the same error.
- OS: Linux Mint 21.0
- twurl 0.9.6, same on 0.9.5
- ruby: 3.0.2
UPDATE:
I've found, that there was some problems with ruby 3.0.2. I've compiled and installed 3.1.2 and now it's look good.