Closed ObreuS closed 4 years ago
### Important note
[ ]
[x]
Important note
Debug logs
Screenshots
25.02.2020 20:35:01: ---------------------------------------------------------------------------------------------------- 25.02.2020 20:35:01: Request: POST https://i.instagram.com/api/v1/accounts/login/ 25.02.2020 20:35:01: Headers: 25.02.2020 20:35:01: X-IG-App-Locale:["en_US"] 25.02.2020 20:35:01: X-IG-Device-Locale:["en_US"] 25.02.2020 20:35:01: X-Pigeon-Session-Id:["2d8bc59c-3775-4a47-944b-387d85259599"] 25.02.2020 20:35:01: X-Pigeon-Rawclienttime:["1582652101.081"] 25.02.2020 20:35:01: X-IG-Connection-Speed:["-1kbps"] 25.02.2020 20:35:01: X-IG-Bandwidth-Speed-KBPS:["1247.872"] 25.02.2020 20:35:01: X-IG-Bandwidth-TotalBytes-B:["1010776503"] 25.02.2020 20:35:01: X-IG-Bandwidth-TotalTime-MS:["810"] 25.02.2020 20:35:01: X-IG-App-Startup-Country:["US"] 25.02.2020 20:35:01: X-IG-WWW-Claim:["0"] 25.02.2020 20:35:01: X-Bloks-Is-Layout-RTL:["false"] 25.02.2020 20:35:01: X-Bloks-Enable-RenderCore:["false"] 25.02.2020 20:35:01: X-IG-Device-ID:["d628f471-35b8-48e4-bee5-04d059420ba6"] 25.02.2020 20:35:01: X-IG-Android-ID:["android-6ea63c2fc24d2486"] 25.02.2020 20:35:01: X-IG-Connection-Type:["WIFI"] 25.02.2020 20:35:01: X-IG-Capabilities:["3brTvwM="] 25.02.2020 20:35:01: X-IG-App-ID:["567067343352427"] 25.02.2020 20:35:01: User-Agent:["Instagram","126.0.0.25.121","Android","(24/7.0; 640dpi; 1440x2560; LGE; hammerhead; hammerhead; Nexus 5; en_US; 195435560)"] 25.02.2020 20:35:01: Accept-Language:["en-US"] 25.02.2020 20:35:01: Host:["i.instagram.com"] 25.02.2020 20:35:01: X-FB-HTTP-Engine:["Liger"] 25.02.2020 20:35:01: Connection:["Keep-Alive"] 25.02.2020 20:35:01: Content: 25.02.2020 20:35:01: signed_body=0fbcca1adef61294b49b4b25ba39083e0a6caa7dd4dad5f8a0ea9e5837b11b4b.{"jazoest":"22345","country_codes":"[{\"country_code\":\"1\",\"source\":[\"default\"]},{\"country_code\":\"1\",\"source\":[\"uig_via_phone_id\"]}]","phone_id":"4429c59c-7a57-46e8-a393-05e9f055d6cc","username":"---------------","adid":"15946c09-4e0f-41e8-bf2b-6048126b3882","guid":"d628f471-35b8-48e4-bee5-04d059420ba6","device_id":"android-6ea63c2fc24d2486","_uuid":"d628f471-35b8-48e4-bee5-04d059420ba6","google_tokens":"[]","password":"---------------","login_attempt_count":"1"}&ig_sig_key_version=4 25.02.2020 20:35:06: Response: POST https://i.instagram.com/api/v1/accounts/login/ [OK] 25.02.2020 20:35:06: Content: 25.02.2020 20:35:06: {"logged_in_user": {"pk": 30769410638, "username": "---------------", "full_name": "---------------", "is_private": false, "profile_pic_url": "--------------------", "profile_pic_id": "2251159495164319376_30769410638", "is_verified": false, "has_anonymous_profile_picture": false, "can_boost_post": false, "is_business": false, "account_type": 1, "professional_conversion_suggested_account_type": 2, "is_call_to_action_enabled": null, "can_see_organic_insights": false, "show_insights_terms": false, "total_igtv_videos": 0, "reel_auto_archive": "unset", "has_placed_orders": false, "allowed_commenter_type": "any", "nametag": {"mode": 1, "gradient": 0, "emoji": "\ud83d\ude00", "selfie_sticker": 0}, "can_see_primary_country_in_settings": false, "allow_contacts_sync": false, "phone_number": ""}, "status": "ok"} logged inException: System.FormatException: '' değerinin biçimi geçersiz. konum: System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index) konum: System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(String name, HeaderStoreItemInfo info, String value) konum: System.Net.Http.Headers.HttpHeaders.Add(String name, String value) konum: InstagramApiSharp.Helpers.HttpHelper.GetDefaultRequest(HttpMethod method, Uri uri, AndroidDevice deviceInfo) konum: InstagramApiSharp.API.Processors.HelperProcessor.d12.MoveNext() Stacktrace: konum: System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index) konum: System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(String name, HeaderStoreItemInfo info, String value) konum: System.Net.Http.Headers.HttpHeaders.Add(String name, String value) konum: InstagramApiSharp.Helpers.HttpHelper.GetDefaultRequest(HttpMethod method, Uri uri, AndroidDevice deviceInfo) konum: InstagramApiSharp.API.Processors.HelperProcessor.d12.MoveNext() Unable to upload photo: '' değerinin biçimi geçersiz.
I get this error when I want to upload a Instagram picture. I couldn't figure out what I did :(
If you have screenshots, you can post it here. unless remove this section!
class Program { private const string username = "----------"; private const string password = "-----------"; private static UserSessionData user; private static IInstaApi api; public static void Main(string[] args) { user = new UserSessionData(); user.UserName = username; user.Password = password; Login(); Console.Read(); } public static async void Login() { var delay = RequestDelay.FromSeconds(2, 2); api = InstaApiBuilder.CreateBuilder() .SetUser(user) .UseLogger(new DebugLogger(LogLevel.All)) .SetRequestDelay(delay) .Build(); var loginRequest = await api.LoginAsync(); if (loginRequest.Succeeded) { Console.Write("logged in"); await DoShowWithProgress(); } else { Console.Write("error logging in"); } } static public async Task DoShowWithProgress() { var mediaImage = new InstaImageUpload { Height = 600, Width = 600, Uri = Environment.CurrentDirectory+ "\\deneme.jpg" }; var result = await api.MediaProcessor.UploadPhotoAsync(mediaImage, "if i did this correctly, this image was uploaded by a bot :-) (<3 tyler>"); Console.WriteLine(result.Succeeded ? $"Media created: {result.Value.Pk}, {result.Value.Caption}" : $"Unable to upload photo: {result.Info.Message}"); } }
fixed, Use v1.5.0.1 and test it
Problem solved. Thank you so much.
### Important note
[ ]
that is related to your issue, like[x]
Important note
from this form!Debug logs
andScreenshots
sections)!I've:
Issue category
Language
Usage
Operating System
Debug logs
25.02.2020 20:35:01: ---------------------------------------------------------------------------------------------------- 25.02.2020 20:35:01: Request: POST https://i.instagram.com/api/v1/accounts/login/ 25.02.2020 20:35:01: Headers: 25.02.2020 20:35:01: X-IG-App-Locale:["en_US"] 25.02.2020 20:35:01: X-IG-Device-Locale:["en_US"] 25.02.2020 20:35:01: X-Pigeon-Session-Id:["2d8bc59c-3775-4a47-944b-387d85259599"] 25.02.2020 20:35:01: X-Pigeon-Rawclienttime:["1582652101.081"] 25.02.2020 20:35:01: X-IG-Connection-Speed:["-1kbps"] 25.02.2020 20:35:01: X-IG-Bandwidth-Speed-KBPS:["1247.872"] 25.02.2020 20:35:01: X-IG-Bandwidth-TotalBytes-B:["1010776503"] 25.02.2020 20:35:01: X-IG-Bandwidth-TotalTime-MS:["810"] 25.02.2020 20:35:01: X-IG-App-Startup-Country:["US"] 25.02.2020 20:35:01: X-IG-WWW-Claim:["0"] 25.02.2020 20:35:01: X-Bloks-Is-Layout-RTL:["false"] 25.02.2020 20:35:01: X-Bloks-Enable-RenderCore:["false"] 25.02.2020 20:35:01: X-IG-Device-ID:["d628f471-35b8-48e4-bee5-04d059420ba6"] 25.02.2020 20:35:01: X-IG-Android-ID:["android-6ea63c2fc24d2486"] 25.02.2020 20:35:01: X-IG-Connection-Type:["WIFI"] 25.02.2020 20:35:01: X-IG-Capabilities:["3brTvwM="] 25.02.2020 20:35:01: X-IG-App-ID:["567067343352427"] 25.02.2020 20:35:01: User-Agent:["Instagram","126.0.0.25.121","Android","(24/7.0; 640dpi; 1440x2560; LGE; hammerhead; hammerhead; Nexus 5; en_US; 195435560)"] 25.02.2020 20:35:01: Accept-Language:["en-US"] 25.02.2020 20:35:01: Host:["i.instagram.com"] 25.02.2020 20:35:01: X-FB-HTTP-Engine:["Liger"] 25.02.2020 20:35:01: Connection:["Keep-Alive"] 25.02.2020 20:35:01: Content: 25.02.2020 20:35:01: signed_body=0fbcca1adef61294b49b4b25ba39083e0a6caa7dd4dad5f8a0ea9e5837b11b4b.{"jazoest":"22345","country_codes":"[{\"country_code\":\"1\",\"source\":[\"default\"]},{\"country_code\":\"1\",\"source\":[\"uig_via_phone_id\"]}]","phone_id":"4429c59c-7a57-46e8-a393-05e9f055d6cc","username":"---------------","adid":"15946c09-4e0f-41e8-bf2b-6048126b3882","guid":"d628f471-35b8-48e4-bee5-04d059420ba6","device_id":"android-6ea63c2fc24d2486","_uuid":"d628f471-35b8-48e4-bee5-04d059420ba6","google_tokens":"[]","password":"---------------","login_attempt_count":"1"}&ig_sig_key_version=4 25.02.2020 20:35:06: Response: POST https://i.instagram.com/api/v1/accounts/login/ [OK] 25.02.2020 20:35:06: Content: 25.02.2020 20:35:06: {"logged_in_user": {"pk": 30769410638, "username": "---------------", "full_name": "---------------", "is_private": false, "profile_pic_url": "--------------------", "profile_pic_id": "2251159495164319376_30769410638", "is_verified": false, "has_anonymous_profile_picture": false, "can_boost_post": false, "is_business": false, "account_type": 1, "professional_conversion_suggested_account_type": 2, "is_call_to_action_enabled": null, "can_see_organic_insights": false, "show_insights_terms": false, "total_igtv_videos": 0, "reel_auto_archive": "unset", "has_placed_orders": false, "allowed_commenter_type": "any", "nametag": {"mode": 1, "gradient": 0, "emoji": "\ud83d\ude00", "selfie_sticker": 0}, "can_see_primary_country_in_settings": false, "allow_contacts_sync": false, "phone_number": ""}, "status": "ok"} logged inException: System.FormatException: '' değerinin biçimi geçersiz.
konum: System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index)
konum: System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(String name, HeaderStoreItemInfo info, String value)
konum: System.Net.Http.Headers.HttpHeaders.Add(String name, String value)
konum: InstagramApiSharp.Helpers.HttpHelper.GetDefaultRequest(HttpMethod method, Uri uri, AndroidDevice deviceInfo)
konum: InstagramApiSharp.API.Processors.HelperProcessor.d12.MoveNext()
Stacktrace: konum: System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index)
konum: System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(String name, HeaderStoreItemInfo info, String value)
konum: System.Net.Http.Headers.HttpHeaders.Add(String name, String value)
konum: InstagramApiSharp.Helpers.HttpHelper.GetDefaultRequest(HttpMethod method, Uri uri, AndroidDevice deviceInfo)
konum: InstagramApiSharp.API.Processors.HelperProcessor.d 12.MoveNext()
Unable to upload photo: '' değerinin biçimi geçersiz.
Describe your issue
I get this error when I want to upload a Instagram picture. I couldn't figure out what I did :(
Screenshots
If you have screenshots, you can post it here. unless remove this section!
My Code