-
Notifications
You must be signed in to change notification settings - Fork 197
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
Twitter Media Upload not working #54
Comments
I saw that oauth.io update home page and received newsletter about new features and so on. It means these issue will be considered? (At least some feedback about)? |
The issue is the endpoint you call is on upload.twitter.com while oauth.io is actually making a call to api.twitter.com when you're giving a relative endpoint. You can try with this:
btw, note that if you're using base64 file to upload, you need to use I got normal response using this:
|
I'm trying to upload media to twitter as well. I tried using this endpoint, but I keep getting this error: XMLHttpRequest cannot load https://oauth.io/request/twitter/%2F1.1%2Fmedia%2Fupload.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 413. |
I'm having the same response status 413. My file is a bit more than 1Mo. It works with a smaller file. I dont understand why the request is too long since the Twitter Api documentation is talking about 5Mo limitation. |
The chunk method is prefered by twitter. Therefore I've finally adapted my code and it works thanks to this code I adapted: If you need more info let me know. |
I´m trying to use oauth client to upload media to Twitter using 1.1 API but I´m receiving 404 if I use the result.post method:
I receive:
I know that media/upload.json uses diferent domain as endpoint:
upload.twitter.com
more details here: https://dev.twitter.com/rest/reference/post/media/upload
The text was updated successfully, but these errors were encountered: