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

error "HTTP/1.1 404 Not Found\r\n" when trying to tweet with photo #172

Open
mptpro opened this issue Apr 2, 2022 · 3 comments
Open

error "HTTP/1.1 404 Not Found\r\n" when trying to tweet with photo #172

mptpro opened this issue Apr 2, 2022 · 3 comments

Comments

@mptpro
Copy link

mptpro commented Apr 2, 2022

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
Copy link

pdjakow commented Aug 26, 2022

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.

@mptpro
Copy link
Author

mptpro commented Sep 4, 2022

@pdjakow I didn't find a solution. But thanks for your update. I'll try it.

@andypiper
Copy link
Contributor

andypiper commented Sep 5, 2022

If you are using Ruby 3.0.x then the -H is probably being ignored (see #159). You might need to apply patches from a pull request. There's no active maintenance underway for twurl at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants