instagram-web-api icon indicating copy to clipboard operation
instagram-web-api copied to clipboard

400 error "Request processing failed" on uploadPhoto

Open nicolehe opened this issue 4 years ago • 7 comments

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\"}}"

nicolehe avatar Aug 21 '20 21:08 nicolehe

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'});
`` 

codexJoin avatar Aug 26 '20 22:08 codexJoin

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"}}"

midasdev711 avatar Aug 31 '20 09:08 midasdev711

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

codexJoin avatar Aug 31 '20 12:08 codexJoin

Do you mean create a new instagram account?

midasdev711 avatar Sep 01 '20 03:09 midasdev711

Same error. It's not working.

ivands avatar Jan 28 '21 14:01 ivands

Also having same problem

Cicko avatar Dec 05 '21 13:12 Cicko

This lib isn't maintained. Don't use it or your account might be banned.

MonsieurBibo avatar Dec 05 '21 16:12 MonsieurBibo