ramtinak / InstagramApiSharp

A complete Private Instagram API for .NET (C#, VB.NET).
MIT License
780 stars 239 forks source link

Bad request when uploading videos #312

Closed Chamse closed 4 months ago

Chamse commented 4 years ago

### Important note

I've:

Issue category

Language

Usage

Operating System

Debug logs

If your issue has an debug log, post it here, unless remove this section! 2/20/2020 11:47:57 AM: Response: POST https://i.instagram.com/rupload_igphoto/1582195662864_0_-1420505091 [OK] 2/20/2020 11:47:57 AM: Content: 2/20/2020 11:47:57 AM: {"upload_id": "1582195662864", "xsharing_nonces": {}, "status": "ok"} 2/20/2020 11:47:57 AM: ---------------------------------------------------------------------------------------------------- 2/20/2020 11:47:57 AM: Request: POST https://i.instagram.com/api/v1/media/upload_finish/?video=1 2/20/2020 11:47:57 AM: Headers: 2/20/2020 11:47:57 AM: Accept-Language:["en-US"] 2/20/2020 11:47:57 AM: X-IG-Capabilities:["3brTPw=="] 2/20/2020 11:47:57 AM: X-IG-Connection-Type:["WIFI"] 2/20/2020 11:47:57 AM: User-Agent:["Instagram","44.0.0.9.93","Android","(21/5.0; 640dpi; 1440x2560; samsung; hero2qltetmo; hero2qltetmo; SM-G935T; en_US; 107092322)"] 2/20/2020 11:47:57 AM: X-IG-App-ID:["567067343352427"] 2/20/2020 11:47:57 AM: Host:["i.instagram.com"] 2/20/2020 11:47:57 AM: Properties: { "X-Google-AD-ID": "c10f42d9-068a-4f8c-b7fc-d92156089c64", "signed_body": "2acde285a507bcdf9b231d0a20fc2e8b9b140b6d15751fa704157aba8e86b2cc.{\"caption\":\"test\",\"upload_id\":\"1582195662864\",\"source_type\":\"4\",\"camera_position\":\"unknown\",\"creation_logger_session_id\":\"84422990-e973-4e6f-9c55-2bd012ea7131\",\"timezone_offset\":\"3600\",\"date_time_original\":\"2020-20-02T11:47:57-0769Z\",\"extra\":{\"source_width\":0,\"source_height\":0},\"clips\":[{\"length\":0,\"creation_date\":\"2020-20-02T11:47:57-0769\",\"source_type\":\"3\",\"camera_position\":\"back\"}],\"poster_frame_index\":0,\"audio_muted\":false,\"filter_type\":\"0\",\"video_result\":\"\",\"_csrftoken\":\"O7VRdq8fjHTfRiU2xdyfaXatowufSfAK\",\"_uuid\":\"3c55a408-9649-4605-a113-5a2c55123dfc\",\"_uid\":\"lone.ramblings\"}", "ig_sig_key_version": "4" } 2/20/2020 11:47:57 AM: Content: 2/20/2020 11:47:57 AM: signed_body=2acde285a507bcdf9b231d0a20fc2e8b9b140b6d15751fa704157aba8e86b2cc.{"caption":"test","upload_id":"1582195662864","source_type":"4","camera_position":"unknown","creation_logger_session_id":"84422990-e973-4e6f-9c55-2bd012ea7131","timezone_offset":"3600","date_time_original":"2020-20-02T11:47:57-0769Z","extra":{"source_width":0,"source_height":0},"clips":[{"length":0,"creation_date":"2020-20-02T11:47:57-0769","source_type":"3","camera_position":"back"}],"poster_frame_index":0,"audio_muted":false,"filter_type":"0","video_result":"","_csrftoken":"O7VRdq8fjHTfRiU2xdyfaXatowufSfAK","_uuid":"3c55a408-9649-4605-a113-5a2c55123dfc","_uid":"lone.ramblings"}&ig_sig_key_version=4 2/20/2020 11:47:58 AM: Response: POST https://i.instagram.com/api/v1/media/upload_finish/?video=1 [BadRequest] 2/20/2020 11:47:58 AM: Content: 2/20/2020 11:47:58 AM: {"message": "Transcode error: b'3tqjrEEcyU'", "status": "fail"} 2/20/2020 11:47:58 AM: ---------------------------------------------------------------------------------------------------- 2/20/2020 11:47:58 AM: Request: POST https://i.instagram.com/api/v1/media/configure/?video=1 2/20/2020 11:47:58 AM: Headers: 2/20/2020 11:47:58 AM: Accept-Language:["en-US"] 2/20/2020 11:47:58 AM: X-IG-Capabilities:["3brTPw=="] 2/20/2020 11:47:58 AM: X-IG-Connection-Type:["WIFI"] 2/20/2020 11:47:58 AM: User-Agent:["Instagram","44.0.0.9.93","Android","(21/5.0; 640dpi; 1440x2560; samsung; hero2qltetmo; hero2qltetmo; SM-G935T; en_US; 107092322)"] 2/20/2020 11:47:58 AM: X-IG-App-ID:["567067343352427"] 2/20/2020 11:47:58 AM: Host:["i.instagram.com"] 2/20/2020 11:47:58 AM: Properties: { "X-Google-AD-ID": "c10f42d9-068a-4f8c-b7fc-d92156089c64", "signed_body": "2acde285a507bcdf9b231d0a20fc2e8b9b140b6d15751fa704157aba8e86b2cc.{\"caption\":\"test\",\"upload_id\":\"1582195662864\",\"source_type\":\"4\",\"camera_position\":\"unknown\",\"creation_logger_session_id\":\"84422990-e973-4e6f-9c55-2bd012ea7131\",\"timezone_offset\":\"3600\",\"date_time_original\":\"2020-20-02T11:47:57-0769Z\",\"extra\":{\"source_width\":0,\"source_height\":0},\"clips\":[{\"length\":0,\"creation_date\":\"2020-20-02T11:47:57-0769\",\"source_type\":\"3\",\"camera_position\":\"back\"}],\"poster_frame_index\":0,\"audio_muted\":false,\"filter_type\":\"0\",\"video_result\":\"\",\"_csrftoken\":\"O7VRdq8fjHTfRiU2xdyfaXatowufSfAK\",\"_uuid\":\"3c55a408-9649-4605-a113-5a2c55123dfc\",\"_uid\":\"lone.ramblings\"}", "ig_sig_key_version": "4" } 2/20/2020 11:47:58 AM: Content: 2/20/2020 11:47:58 AM: signed_body=2acde285a507bcdf9b231d0a20fc2e8b9b140b6d15751fa704157aba8e86b2cc.{"caption":"test","upload_id":"1582195662864","source_type":"4","camera_position":"unknown","creation_logger_session_id":"84422990-e973-4e6f-9c55-2bd012ea7131","timezone_offset":"3600","date_time_original":"2020-20-02T11:47:57-0769Z","extra":{"source_width":0,"source_height":0},"clips":[{"length":0,"creation_date":"2020-20-02T11:47:57-0769","source_type":"3","camera_position":"back"}],"poster_frame_index":0,"audio_muted":false,"filter_type":"0","video_result":"","_csrftoken":"O7VRdq8fjHTfRiU2xdyfaXatowufSfAK","_uuid":"3c55a408-9649-4605-a113-5a2c55123dfc","_uid":"lone.ramblings"}&ig_sig_key_version=4 2/20/2020 11:47:59 AM: Response: POST https://i.instagram.com/api/v1/media/configure/?video=1 [BadRequest] 2/20/2020 11:47:59 AM: Content: 2/20/2020 11:47:59 AM: {"message": "Transcode error: b'3tqjrEEcyU'", "status": "fail"}

Describe your issue

I keep getting bad request when uploading videos, is there a size requirement that must be uphold or something similar that can cause bad requests on upload video?

Screenshots

If you have screenshots, you can post it here. unless remove this section!

ramtinak commented 4 years ago

Your video or your thumbnail is not in a correct aspect ratio range or correct format

Chamse commented 4 years ago

Alright thanks, do you have any idea where i can find the ranges i can use? seems like everywhere i look i get a specific size, not a range...

Den ons. 26. feb. 2020 kl. 12.16 skrev Ramtin Jokar < notifications@github.com>:

Your video or your thumbnail is not in a correct aspect ratio range or correct format

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ramtinak/InstagramApiSharp/issues/312?email_source=notifications&email_token=AATJJINFLJOXW4D2SGLEABDREZFSTA5CNFSM4KYMHWAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM72TBQ#issuecomment-591374726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJJIPUX5D4DAFNKSFZLGLREZFSTANCNFSM4KYMHWAA .

ramtinak commented 4 years ago

0.5-1.8

Chamse commented 4 years ago

Im sorry, i don't understand, what are those numbers? i searched online, and it says recommended vertical/landscape pixels is 1080x608 pixels, but when i try to upload in that format, i get the format not correct error.

I hope you have time to help me out, what are the recommended pixels for landscape and portrait that it will actually accept?

Ill gladly donate for an answer if you have time :)

Den ons. 26. feb. 2020 kl. 12.46 skrev Ramtin Jokar < notifications@github.com>:

0.5-1.8

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ramtinak/InstagramApiSharp/issues/312?email_source=notifications&email_token=AATJJIJQOMUBZFFDTZ4RV33REZJCXA5CNFSM4KYMHWAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM75K4A#issuecomment-591385968, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJJIOW6FPYZS32EBFV5JLREZJCXANCNFSM4KYMHWAA .

sezerkorkmaz commented 4 years ago

Did you find a solution?