ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.71k stars 1.47k forks source link

[BUG] Video upload issues: media_needs_reupload #1379

Open AKwoKWH opened 4 years ago

AKwoKWH commented 4 years ago

Example file

upload_video.py

Describe the bug

A clear and concise description of what the bug is.

Log

2020-03-20 00:57:56 - DEBUG - Request Endpoint: https://i.instagram.com/api/v1/media/configure/?video=1
2020-03-20 00:57:56 - DEBUG - Request Data: {"upload_id": "158463xxxxxxx", "source_type": 4, "poster_frame_index": 0, "length": 213.91, "audio_muted": false, "filter_type": 0, "date_time_original": "2020:03:19 16:57:56", "timezone_offset": "10800", "width": 852, "height": 480, "clips": [{"length": 213.91, "source_type": "4"}], "extra": {"source_width": 852, "source_height": 480}, "device": {"app_version": "117.0.0.28.123", "android_version": "28", "android_release": "9.0", "dpi": "420dpi", "resolution": "1080x1920", "manufacturer": "OnePlus", "device": "ONEPLUS A3003", "model":  ...................
2020-03-20 00:57:56 - DEBUG - Response Data: <Response [200]>
2020-03-20 00:57:56 - DEBUG - Response JSON: {'message': 'media_needs_reupload', 'media': {'upload_id': '158463xxxxxxx', 'device_timestamp': '1584637057679'}, 'error_title': 'cover_photo_upload_error extra:{}', 'status': 'ok'}

To Reproduce

(EXAMPLE:) Steps to reproduce the behavior: Just use the upload_video.py (I add additional log for the response from instagram)

Expected behavior

Expected the media is uploaded

Additional context

Add any other context about the problem here.

Version

Python version (python -v): 3.7

Operating Systeem: Linux

duplicate-issues[bot] commented 4 years ago

Hey @AKwoKWH,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job :smile:

If not, the maintainers will get to this issue shortly.

Cheers, Your Friendly Neighborhood ProBot

AKwoKWH commented 4 years ago

The response code is 200 so you might not aware this is actually an error. the script return media "is uploaded", but the video never appear on Instagram.

Hatchet-Harry commented 4 years ago

I'm getting a "video was uploaded" but the video doesn't show on my feed. Does anyone still face the same issue?

AKwoKWH commented 4 years ago

I'm getting a "video was uploaded" but the video doesn't show on my feed. Does anyone still face the same issue?

Yes, this is what you will get. if the response code is 200, then the script will assume the video is uploaded.

However, the case here is that, even instagram server return 200, the upload process is actually not ok. Thats why you cannot see your video on your feed.

I have exactly the same issues with you, so I added a line to print out the response text from instagram server and found out this.

Hatchet-Harry commented 4 years ago

Thanks man.

I'm quite surprise no one else is concerned with this issue tho.