Search Unity

What's "Curl error 56"?

Discussion in 'Editor & General Support' started by Peter77, Dec 16, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,090
    Sometimes, when I wake up my PC from sleep mode and focus Unity, the editor outputs the following error:
    Code (CSharp):
    1. [collab-accelerator] discovery started due to a new cloud project binding
    2. Curl error 56: Receiving data failed with unitytls error code 1048578
    3. (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 805)
    What is this telling me? I'm not using any Unity services and I don't use Collaborate/Accelerator, these packages aren't installed.

    I haven't seen this error in earlier Unity versions. I guess it's new to 2019.3?
     
    Last edited: Dec 16, 2019
  2. Anthony0506

    Anthony0506

    Joined:
    Oct 13, 2016
    Posts:
    115
    i'm using 2019.2.16 and just got this error too.
     
    pikachuxxx and Peter77 like this.
  3. M_oenen

    M_oenen

    Joined:
    Oct 21, 2015
    Posts:
    4
    Unity 2019.3.0f1, got this error.
     
  4. talofen

    talofen

    Joined:
    Jan 1, 2019
    Posts:
    40
    2019.3.0f1, same error
     
  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    Please provide steps to reproduce on a new/empty project. I'm running 2019.3.0f1 and don't see the error.
     
  6. GuaGuaGuaZeng

    GuaGuaGuaZeng

    Joined:
    Oct 9, 2018
    Posts:
    9
    I got the same error. And I found that Package Manger can't load package list. It seems that a network issue with Package list server happened. I am in China, you guy got same problem may show your location.
     
    FoxPeti likes this.
  7. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,060
    This error means a failure in secure connection (TLS).
     
  8. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    748
    Same error from Germany, mostly happens after I put my computer to hibernate. Error only triggered once per wakeup.

    Specs:
    Windows 10 Pro 1903
    Unity 2019.3.0f3
    UnityHub 2.2.1
    Using UPM with custom Git Packages, but not started with hub (since then my git environment path is somehow overwritten - see https://forum.unity.com/threads/unityhub-breaks-git-path-for-package-manager.788096/)
    Error Message:
    Code (csharp):
    1. Curl error 56: Receiving data failed with unitytls error code 1048578


    Hope that helps :)
     
    Peter77 likes this.
  9. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    If anyone is receiving this error, could you capture a Charles Proxy session? We could see which endpoint it is trying to hit. Once you install Charles, from the Help menu choose SSL Proxying/Install Charles root certificate and REBOOT. Start Charles, then start the Unity Editor until you see the error, then stop the Charles capture and save the session and attach here or in a private message.
     
    Peter77 likes this.
  10. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    748
    Hi Jeff,

    I tried it a few times and actually managed to record the error for you \o/


    The report is attached to this post. I hope that helps you track down the source.

    Cheers
    Johannes
     

    Attached Files:

    Last edited: Dec 18, 2019
    Peter77 likes this.
  11. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    Ah, sorry, I left out a critical step. As you can see, the information is still encrypted so we can't read it. I trust that you added the Charles root certificate and rebooted, but you also need to add the following in Charles. Go to menu Proxy/SSL Proxying Settings... and add

    *.unity3d.com:*

    Also, I might suggest that you delete your previous attachment as it might expose your IP address, etc. Probably best to send it to me next time in a private conversation, then I'll review and follow up here. And make sure those red X's are gone (unencrypted)

    CharlesSettings_001.png
     
  12. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    748

    Hi Jeff,

    dang, okay I will try to catch one of those errors again.

    I added your include (*.unity3d.com:* had an invalid character error, so I added *.unity.com*).
    upload_2019-12-18_19-37-50.png

    I think the sertup is not finished that way, now I'm getting Curl error 51 in the editor.

    Code (csharp):
    1. Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_UNKNOWN_ERROR
    upload_2019-12-18_19-34-52.png

    Do I need to change anything else in Charles? Never used the program before, so there might be settings I'm still missing in order to run the program properly.
     
  13. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    The last asterisk is the wild card for the port number. You don't actually type in the :'s Also can you confirm that you installed the Charles root certificate and rebooted? This may help, note the section on Windows 10 to ensure you place the certificate correctly https://support.unity3d.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity

    Charles2_001.png
     
  14. GuaGuaGuaZeng

    GuaGuaGuaZeng

    Joined:
    Oct 9, 2018
    Posts:
    9
    This problem is annoying.
     
    d1favero and median like this.
  15. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    748
    HI Jeff,

    sadly I can't get it working, did a few restarts and tried some different settings, but I get errors all over the place. Hope somebody else finds the time to do a repro.
     
  16. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    4,224
    I also got that message in 2019.2, 2019.3 and 2020.1. I saw the error messages in the console but I'm unable to tell when exactly and after doing what they appeared.

    It never popped up in blank new projects.

    I'm not using any proxy and my PC is under Windows 7 SP1.
     
  17. Wojzax

    Wojzax

    Joined:
    Jul 22, 2014
    Posts:
    27
    Got same error for two days now in 2019.2.17f1.
    It happens in the editor every 5 minutes or so when game is not played, and if game is played it just crashes unity without any warning.
    It pops up even on new empty project.

    Curl error 56: Receiving data failed with unitytls error code 1048578
    in EditorLog i've got:
    (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 796)
     
    infoexpert likes this.
  18. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    We need a Charles capture to see what is happening here. We are not able to reproduce.
     
  19. infoexpert

    infoexpert

    Joined:
    Jun 11, 2017
    Posts:
    2
    I've got the same error causing unity 2019.2.17f1 to crash in play mode.
    Maybe my log would help you find a way to solve it.

    Curl error 56: Receiving data failed with unitytls error code 1048578

    (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 796)

    Function class SoundChannelInstance *__cdecl SoundChannel::eek:perator ->(void) const may only be called from main thread!
    (Filename: C:\buildslave\unity\build\Modules/Audio/Public/sound/SoundManager.cpp Line: 35)

    * Assertion at ..\mono\metadata\threads.c:1788, condition `internal' not met
     
    Last edited: Nov 16, 2021
    White_Wabbit likes this.
  20. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    4,224
    I cannot provide a "Charles" capture but I just got this curl error message. This time, circumstances are very clear: my internet connection was cut for a few minutes and the message appeared just at that time.

    The connection was cut at the origin; I didn't unplug my computer from the internet.

    Message:
    Code (CSharp):
    1. Curl error 56: Receiving data failed with unitytls error code 1048578
    2. 0x000000014253496C (Unity) StackWalker::GetCurrentCallstack
    3. 0x0000000142537E41 (Unity) StackWalker::ShowCallstack
    4. 0x0000000140DC5E55 (Unity) GetStacktrace
    5. 0x00000001430EDCCB (Unity) DebugStringToFile
    6. 0x0000000142C58F91 (Unity) TransportCurl::TransformCurlErrorToWebError
    7. 0x0000000142C56243 (Unity) CurlExecutor::CurlExecute
    8. 0x0000000141E4F59E (Unity) JobQueue::Exec
    9. 0x0000000141E55E9B (Unity) JobQueue::Steal
    10. 0x0000000141E4FD73 (Unity) JobQueue::ExecuteJobFromQueue
    11. 0x0000000141E518FD (Unity) JobQueue::ProcessJobs
    12. 0x0000000141E56E96 (Unity) JobQueue::WorkLoop
    13. 0x000000014237D4A7 (Unity) Thread::RunThreadWrapper
    14. 0x0000000076F1556D (kernel32) BaseThreadInitThunk
    15. 0x000000007717372D (ntdll) RtlUserThreadStart
     
  21. GuaGuaGuaZeng

    GuaGuaGuaZeng

    Joined:
    Oct 9, 2018
    Posts:
    9
    Hi, Jeff. This is my result after using Charles. Is this help? I can't upload the session file. You can leave a email for me to send it to you.
     

    Attached Files:

  22. mertkura

    mertkura

    Joined:
    Apr 4, 2019
    Posts:
    1
    I keep getting these errors for a week(maybe 2 weeks, i did not give attention to this error);
    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_NOT_TRUSTED ,
    Curl error 56: Receiving data failed with unitytls error code 1048578,
    Curl error 6: Could not resolve host: config.uca.cloud.unity3d.com
    after latest unity hub patches (last 1 or 2 patches i am not sure which one causing it).

    Error even occurs in built projects. I saw curl error : 51 in deployed project then started my research about this.

    Used assets;
    SteamVR v2.5.0
    Odin inspector 2.1.5,
    Dotween v1.2.235, DotweenPro v1.0.145
    and my own offline packages with no connection other than my local git repo.

    Test cases
    Connection types: Offline, Company wifi, public wifi. (shortcuts: off, cwifi, pwifi)
    Connected devices: PC and Company computer with admin rights. (shortcuts: pc, cc)
    Tested environments: Unity Editor 2019.2.16f1, Built project with 2019.2.16f1 (shortcuts: editor, built)
    Error shortcuts: err51, err56, err6, none


    You may import following code to CSV editors for better result. I'll write in CSV format (seperator: comma, ending: newline op)

    #,connectionType,connectedDevice,testEnv,err,note
    0,off,cc,built,err51,"customer encountered with unity.exe stops during play."
    1,off,cc,built,none,"on customer computer, tested for 8 hours in following day. No errors encountered."
    2,cwifi,cc,built,err6,"encountered this error several times but did not cause any kind of crash."
    3,off,cc,built,err6,"encountered this error several times but did not cause any kind of crash."
    4,off,pc,built,none,"nothing hapened when i try in my computer."
    5,pwifi,pc,built,err6,"stated giving annying error."
    6,off,pc,built,none,"kept giving this error."
    7,off,pc,editor,none,"editor seems clear."
    8,cwifi,pc,editor,none,"seems clear again. I has been 4 hours since i connect via my pc."
    9,cwifi,pc,editor,err56,"console goes rage mode and gives this error in every 10 seconds."
    10,cwifi,pc,editor,err51,"after installing charles according to this topic, suddenly 10 duplicate of this error appeared. Only after 2 seconds of charles installation and rebooting."


    @JeffDUnity3D, i'll send you my charles reports in PM in following minute. But i could not "get rid of red cross" even i correctly installed via guide that you sent. (Trying to test in company connection. Maybe our IT blocks something here)
     
  23. ProtoTerminator

    ProtoTerminator

    Joined:
    Nov 19, 2013
    Posts:
    484
    @JeffDUnity3D I didn't get a crash, but I did get the Curl error when I added this to my frag shader:

    return saturate(color);

    Curl error 56: Receiving data failed with unitytls error code 1048578
     
  24. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    Sorry no, the red x's means it's still encrypted. Please follow the previous instructions for installing the Charles root certificate and setting the proper SSL endpoint configuration in Charles.
     
  25. GuaGuaGuaZeng

    GuaGuaGuaZeng

    Joined:
    Oct 9, 2018
    Posts:
    9
    Sorry, I follow the instruction and still get the red x.
     
  26. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    Then you missed a step most likely.

    * Turn off Windows Firewall
    * Install the Charles root certificate and move it to the correct location in cert manager and reboot.
    * Set the proper settings under SSL Proxying in Charles.

    If you still see the red x's, there is no need to provide the file or screenshots.
     
  27. GuaGuaGuaZeng

    GuaGuaGuaZeng

    Joined:
    Oct 9, 2018
    Posts:
    9
    Well, The problem may be solved.

    I get it wrong. When I close Charles it immediately shows a "curl error 56".
     

    Attached Files:

    Last edited: Dec 28, 2019
  28. PowerTeemo

    PowerTeemo

    Joined:
    Jul 10, 2018
    Posts:
    1
    저도 같은 에러가 뜹니다.. 해결책좀 알려주세요 T_T
     
    median likes this.
  29. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    Not sure what you mean by get it wrong, can you confirm you followed all the steps? We would need to see the contents under v1/events
     
  30. GuaGuaGuaZeng

    GuaGuaGuaZeng

    Joined:
    Oct 9, 2018
    Posts:
    9
    I upload the session file and change its extension to 'txt'. You can change it back to '.chls' and see the contents.
     

    Attached Files:

    Peter77 likes this.
  31. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    Finally! So the events are Editor events, and would not be expected to show in your game on a device. You can disable the events https://docs.unity3d.com/Manual/EditorAnalytics.html but it does look like it currently requires the Pro version. I checked with engineering and we should be opening up this setting to everyone early January.
     
    Last edited: Dec 31, 2019
  32. KaiShaine

    KaiShaine

    Joined:
    Dec 31, 2019
    Posts:
    3
    Yes but it happened suddenly. It's my problem too. i don't know why. This is the screenshot. Screenshot (51).png
     
  33. DarlesLSF

    DarlesLSF

    Joined:
    Nov 24, 2019
    Posts:
    1

    Same here and its a new project. But when I play the game, run everything fine.
     
  34. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    Please see my previous post
     
  35. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    If someone could submit a bug report and attach a minimal project and provide the issue ID here, it would be helpful. Ideally start with a new/empty project and see if it reproduces.
     
  36. Sanctus2099

    Sanctus2099

    Joined:
    Dec 11, 2013
    Posts:
    90
    Hello,

    I just modified the setting to disable editor analytics and hopefully the error will be gone.
    @JeffDUnity3D I doubt it has anything to do with a project. Been toying with multiple new projects in December and I've seen this error on all of them. I did install Odin on all of them but other than that I mostly write a few scripts to test out stuff without modifying any project settings or importing other things.

    Update:
    Unity no longer shows that error but does sometimes crash when pressing play and if I look into the logs I see this at the end:

    Code (CSharp):
    1. Curl error 56: Receiving data failed with unitytls error code 1048578
    2.  
    3. (Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 796)
    4.  
    5. * Assertion at ..\mono\metadata\threads.c:1788, condition `internal' not met
    Update 2: Got the same crash while the editor was idle for a few minutes (I was afk). Same entry in the log. Number of crashes seems to have increased since changing the editor analytics preferences.
     
    Last edited: Jan 4, 2020
    Skiv likes this.
  37. wshigham

    wshigham

    Joined:
    Dec 30, 2019
    Posts:
    14
    Hi, just to log I am getting the same issue with Unity crashing in both new and loading old projects. Normally about 10-15 minutes after restarting after the previous crash. Same error message.. Curl error 56: Receiving data failed with unitytls error code 1048578. After this shows up the crash will occur within a few minutes, normally the next time I press play.
     
  38. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    We've been able to reproduce here, and hopefully it will be addressed in a future release.
     
  39. Skiv

    Skiv

    Joined:
    Nov 9, 2015
    Posts:
    2
    I have the same issue. My editor crashes oftenly with this error in the log.
     
  40. BringTheRuckus

    BringTheRuckus

    Joined:
    Jun 9, 2019
    Posts:
    3
    I got the same error. Everything was fine until I upgraded to the latest version, now when I press play in my game, it pops up.
     
  41. Skiv

    Skiv

    Joined:
    Nov 9, 2015
    Posts:
    2
    Is there a temporary manually solution for this problem while we are waiting for release with fix? It's impossible to work now, crashes happens oftenly. It reproduces in both version which I use: 2019.3.0f3 and 2019.2.17.f1
     
  42. ProtoTerminator

    ProtoTerminator

    Joined:
    Nov 19, 2013
    Posts:
    484
    If you can, roll back to 2019.1.14. My team has stayed on that version for a while because upgrading breaks our project.
     
    Skiv and Sanctus2099 like this.
  43. calpolican

    calpolican

    Joined:
    Feb 2, 2015
    Posts:
    375
    At least for me, openening the console and disabling "Error on Play" as mentioned, stopped the crashes.
     
  44. calpolican

    calpolican

    Joined:
    Feb 2, 2015
    Posts:
    375
    So, Unity is using our bandwith to send itself data and you can't even turn it off, and worst... it's even bugged!?
    Unity is becoming more and more a very shi*ty company.
     
  45. GuaGuaGuaZeng

    GuaGuaGuaZeng

    Joined:
    Oct 9, 2018
    Posts:
    9
    Yes, it's ridiculous. And there isn't even a temporary solution since the problem is found out.
     
  46. Sanctus2099

    Sanctus2099

    Joined:
    Dec 11, 2013
    Posts:
    90
    @ProtoTerminator Thanks for that. After downgrading to 2019.1.14 everything is working very well.
     
    Skiv likes this.
  47. hazel_koop

    hazel_koop

    Joined:
    Apr 9, 2019
    Posts:
    29
    Is there a bug report we can follow to know when this will be fixed?
     
  48. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    Sorry I don't follow. Typically a bug report is created first, then the fix is rolled out once the necessary code change is identified, fixed and tested. This is a fairly typical process.
     
  49. jamespaterson

    jamespaterson

    Joined:
    Jun 19, 2018
    Posts:
    374
  50. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    11,685
    It may help, I've heard from one user that it does indeed help. You can also disable Editor Analytics by opting out at id.unity.com
     
unityunity