The Problem:
I’m getting this error:
Curl error 56: Receiving data failed with unitytls error code 1048578
I’m making a web post request to a database via SOAP. When I try making the same request to a placeholder Postman API, I can get a response, but to the server that matters, I get this error. I don’t get the error when going through a standalone C# project, but I do get it when I call the same code from Unity.
Standalone C# + Postman = no problem
Standalone C# + SOAP database = no problem
Unity + SOAP database = curl error 56
What I Have Tried:
I have read this post here
I have boiled down my code to both a standalone C# project and an empty Unity project that only has this database communication code.
I tried disabling analytics in the editor, both in the editor and by going to Unity ID to change the settings. I rebooted the editor and I still get this error.
I’ve rewritten the database code using a backbone of an auto-generated WSDL C# script, using the HttpWebRequest class, and using the HttpClient class. All three options work in standalone C#. The auto-generated WSDL C# script times out after nearly 2 minutes and the other two methods return that curl error 56. Additionally, I’ve tried rewriting everything using the UnityWebRequest class as a base. Still, curl error 56.
All my test calls to Postman work fine from both standalone C# and from Unity, but from Unity to my database gives me this error.
Please, if someone could tell me that I just missed a checkbox in the Unity editor or a boolean script variable somewhere and it solves my issue, I would be ecstatic. Any help is appreciated.