Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by CWHlg · Aug 27, 2020 at 06:45 AM · iosxcodewebrequest

UnityWebRequest.error return "cannot connect to destination host" on iOS13.5.1

I wanted to post a card to trello using UnityWebRequest.Post, but UnityWebRequest.error return "cannot connect to destination host" on iOS13 (tested on iOS13.5.1). It worked on iOS12.3.1, Android, and UnityEditor. Any idea what is going wrong?

Here are the code:

 private void CheckWebRequestStatus( string errorMessage, UnityWebRequest uwr )
         {
             if ( !string.IsNullOrEmpty( uwr.error ) )
             {
                 Debug.Log( errorMessage + ": " + uwr.error );
             }
         }
 public IEnumerator UploadCardCO(TrelloCard card)
         {
             WWWForm post = new WWWForm();
             post.AddField("name", card.name);
             post.AddField("desc", card.desc);
             post.AddField("pos", card.pos);
             post.AddField("due", card.due);
             post.AddField("idList", card.idList);
  
             UnityWebRequest uwr = UnityWebRequest.Post(cardBaseUrl + "?" + "key=" + key + "&token=" + token, post);
             uwr.timeout = m_uploadCardWebRequestTimeOut;
  
             yield return uwr.SendWebRequest();
  
             CheckWebRequestStatus( "Could not upload new card to Trello", uwr );
         }

Here are the XCode log:

 2020-08-27 14:10:24.786708+0800 MYAPP[929:197965] Task <6A508741-B288-4B15-BC95-516F58A4D2D3>.<1> HTTP load failed, 561/1771 bytes (error code: -1005 [4:-4])
 2020-08-27 14:10:24.795008+0800 MYAPP[929:197965] Task <6A508741-B288-4B15-BC95-516F58A4D2D3>.<1> HTTP load failed, 561/1771 bytes (error code: -1005 [4:-4])
 2020-08-27 14:10:24.798028+0800 MYAPP[929:197958] Task <6A508741-B288-4B15-BC95-516F58A4D2D3>.<1> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=-4, NSUnderlyingError=0x281712d00 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x283b7bc50 [0x1dab3f728]>{length = 16, capacity = 16, bytes = 0x100201bb1288d6130000000000000000}, _kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <6A508741-B288-4B15-BC95-516F58A4D2D3>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
     "LocalUploadTask <6A508741-B288-4B15-BC95-516F58A4D2D3>.<1>"
 ), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://api.trello.com/1/cards/?key=KEY&token=TOKEN, NSErrorFailingURLKey=https://api.trello.com/1/cards/?key=KEY&token=TOKEN, _kCFStreamErrorDomainKey=4}
 Could not upload new card to Trello: Cannot connect to destination host

Any advice, solution or suggestion would be much appreciated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

167 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Which version of Xcode does Unity 3.5.5f3 support? 1 Answer

iOS - Mimic Native Layout 0 Answers

Xcode hook up with Unity 1 Answer

App size increased when ported to IOS 0 Answers

iOS Build Integer literal is too large to be represented in a signed integer type 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges