instagram-web-api
instagram-web-api copied to clipboard
400 error "Request processing failed" on uploadPhoto
Hello there, I'm getting 400 status code error with the type ProcessingFailedError and message "Request processing failed" with the uploadPhoto method. The login seems to be fine.
try {
await client.login();
let photo = "./outputs/IG/Mandi.jpg";
const { media } = await client.uploadPhoto({
photo: photo,
});
console.log(`https://www.instagram.com/p/${media.code}/`);
} catch (e) {
console.error(e.message);
}
The result is: 400 - "{\"debug_info\":{\"retriable\":false,\"type\":\"ProcessingFailedError\",\"message\":\"Request processing failed\"}}"
New upload photo has changes, you need to do:
Look readme, post = 'feed' to upload photo in feed or 'story' to upload in story.
await client.uploadPhoto({ photo: photo, caption = 'test', post = 'feed'});
``
Hi, I tried this.
client.uploadPhoto({ photo: "http://res.cloudinary.com/deikols3z/image/upload/v1598863549/o7tnvllreqk4wwkg82xo.png", caption: 'testing', post: 'feed' })
And it returns same error.
400 - "{"debug_info":{"retriable":false,"type":"ProcessingFailedError","message":"Request processing failed"}}"
Note!, instagram only accept JPEG images, your image is PNG, Convert the image to JPEG, and try again.
https://github.com/jlobos/instagram-web-api#uploadphotoparams
Note 2: You probably tried to upload many times, if you tried, you will receive this message. Create a new account and try again
Do you mean create a new instagram account?
Same error. It's not working.
Also having same problem
This lib isn't maintained. Don't use it or your account might be banned.