-
Notifications
You must be signed in to change notification settings - Fork 97
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
400 (Bad Request) when trying to upload media #127
Comments
Would you mind posting the start of your request (ommitting your keys and the large part of your image data), please? |
I'm using AngularJS 2 so in
And then in a
I don't think it's an authentication issue since I can post a regular text tweet with no errors. |
Hi @ADavidLiu, I don't think you need the separate Base64 header. Does this work?
|
Still not working. I'm getting the same error. |
I have the same problem:
Allways error 400 Bad request, code 38 "media parameter is missing" Ups!, this fail is with the 3 versión, with de 2.6 work fine. |
you are right it is failing with 3 version but working well with 2.6 |
@stormbreakers @farcas Can you please link me to a sample image or a complete code so we can reproduce this issue in order to fix it? |
Hi, I am getting the same error, but what was mentioned regarding this working in version 2.6 and not 3? |
@farcas I am interested to know how you got the posting of the image to the tweet to work... I tried what you did and I get an error with img.todataURL(). |
@stormbreakers @farcas @grrrero Can you please link us to a sample code you are using that is supposed to work but does not work actually, along with its version? |
Same issue here, media upload does not work at all on 3.0, I've switched to 2.6 to try this out. I'm also unable to make it work with the The example given in the README, works fine, the file size is about 400 bytes.
If you call the same function with a base64 string representing an image of 146Kb , it will fail:
The response is particularly weird, it returns a 200, containing an
|
I've also been getting a 400 error while trying to upload media: Here is the code I'm using for image conversion:
And here is the cb call that I'm using:
Let me know if there's anything I can do to help debug :-) |
I'm currently facing the same issue. I'm using codebird 3.0.0-dev I've attached sample of my code: code.js.zip I'm getting the media parameter is missing. with HTTP CODE 400 Thanks, |
I'm getting this error:
POST https://api.jublo.net/codebird/1.1/media/upload.json 400 (Bad Request)
when following the first step of the example code for uploading images. According to the Twitter docs (https://dev.twitter.com/rest/media/uploading-media):I tried adding that as part of the header but it still doesn't work. I am sure I'm correctly enconding the image as base64 because if I print the code and paste it in an online base64 to image decoder, it is being rendered.
Also, the link provided
documentation for tweeting with media
is dead.The text was updated successfully, but these errors were encountered: