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

[BUG] Video upload issues: media_needs_reupload #1379

@AKwoKWH

Description

@AKwoKWH

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions