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 400 Bad Request; when posting a photo #1756
Labels
Comments
Fqlox
added
bug
unconfirmed
This issue hasn't been read/confirmed/accepted by an admin
labels
Feb 19, 2024
One potential cause of this error could be related to how the image file is being uploaded. your code uses util.promisify(fs.readFile) to read the image file asynchronously, which may not handle binary data correctly, especially if the file is large or in a format that Instagram's API doesn't accept properly.
Try this and let me know |
Pretty sure you need to upload JPEG. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
I got error
400 Bad Request;
when posting a photo.here is the simpliest code
The logging seems to work since console.log(g), print out formated dict.
screenshot.png is in 1080 × 1080.
I'm using Node.js v21.5.0.
full print of the error:
The text was updated successfully, but these errors were encountered: