Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

[BUG] Video upload issues: media_needs_reupload #1379

Open
AKwoKWH opened this issue Mar 19, 2020 · 5 comments
Open

[BUG] Video upload issues: media_needs_reupload #1379

AKwoKWH opened this issue Mar 19, 2020 · 5 comments

Comments

@AKwoKWH
Copy link
Contributor

AKwoKWH commented Mar 19, 2020

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
Copy link

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 😄

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

Cheers,
Your Friendly Neighborhood ProBot

@AKwoKWH
Copy link
Contributor Author

AKwoKWH commented Mar 20, 2020

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
Copy link

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

@AKwoKWH
Copy link
Contributor Author

AKwoKWH commented Mar 27, 2020

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
Copy link

Thanks man.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants