Can't fetch site as string. Unitywebrequest
How it will look in new UnityWebrequest? string result = String.Empty; while (connectionRetries < maxRetries) { WWW www = new WWW(mySite.url); while (!www.isDone) yield return null; if...
View ArticleOIDC Authentication DLL compatability and web browser help
Hi, Got a doozy of one here. I did ask before on a related topic but we have evolved past that one a bit it does seem (original question here:...
View ArticleServer-Side Events with UnityHTTPWebRequests (text/event-stream)
Hello, I'm trying to get a Server-Sent Event working with Unity, but with little luck. So far, this is the code that I have tried to get it to constantly listen and fetch for updates with: public...
View ArticlePOST to HTTP not working
I've been trying to get [this tutorial][1] to work with UnityWebRequest. GET works fine, but when I try to POST I keep getting this error: register.php: Error: Cannot connect to destination host...
View ArticleUnityWebRequest returns different errors for right urls
I'm using UnityWebRequest to download asset bundles from my server. Sometimes the following code returns different exceptions such as Failed to receive data , Cannot resolve destination host, Cannot...
View ArticleMemory leak when HttpWebRequest ssl handshake failed.
As the title, and I find the possible reason in google. (https://github.com/mono/mono/issues/8689) ---------- The solution is in (https://github.com/mono/mono/pull/10254) ---------- I encountered this...
View ArticleUnity - wait for data to load from database
hi, i have some important data i need to load from database . the problem is that i need to load the scene only after the data is loaded . and i didn't find a solution for that. hope anyone can help .
View ArticleHTTP Request - error:UNITYTLS_X509VERIFY_NOT_DONE
The Http request spits out this error: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: UNITYTLS_X509VERIFY_NOT_DONE I don't use Unity Web at all, for requests in the RestSharp...
View Articlerecieving push HTTP request in webGL project
A hosting site opens an Iframe for each user session in which a unity 2020.2 webgl project runs, the game generates a score that needs to be sent back to the hosting site along with the user ID (which...
View ArticleProblem deserialize Json api rest
Hi guys I've try to get some api rest value from unity. I've some problem because sometimes is impossible to deserialize the value inside json. In this example i wouldlike to read location.name : FROM...
View ArticleTry catch alternative for HTTP request
Hello, When connecting to a REST api, randomly and in some android devices I get errors when doing a POST. The errors are allways Curl error.... and they usually appear when the users are connected to...
View ArticlePosting JSON data inside a form post urlencodes the json data
I need to send json data to a server that requires 2 parameters in a application/x-www-form-urlencoded format where the second parameter is the json data. I am porting an application from Xcode swift...
View ArticleDownloading multiple textures with a single http request (UnityWebRequest)
Getting a one single texture is not a problem. i've figured out how to do that. But i need a few thousands for which i dynamically generate url.. The problem is that by making an http request for each...
View ArticleUnityWebRequest very slow
We found that when we built a project with Unity 2020.3.22 and noticed that the duration of sending a webRequest and receiving the response is really long! We also tried to build the project with Unity...
View ArticleWhy is UnityWebRequest.Result.ConnectionError always true?
Everything worked yesterday. Now I have to comment out UnityWebRequest.Result.ConnectionError to make it work. IEnumerator GetScores(string url) { using (UnityWebRequest webRequest =...
View ArticleCapturing and Tracing All HTTP Requests in Unity project
I'm trying to find a way to capture and trace All HTTP Requests made in my Unity project. So far I've tried using SharpPcap and Fiddler Core to capture TCP packets and parse out the HTTP data. I've...
View ArticleUsing HTTPS
Hi all! I'm trying to communicate with a backend server using SSL. I tried using WWW, but changing http:// to https:// dowsn't work (it connects, but doesn't check the certificate, so the connection...
View ArticleHow do I get into the data returned from a UnityWebRequest ?
I used the example from the unity manual and threw in more Debug.Log lines to show status: IEnumerator GetText() { UnityWebRequest www = new...
View ArticleHow to insert webRequest data to prefabs before instantiation
I have a script in which I want to inject data to several prefabs before I instantiate them. my idea was to make a "for" loop in which every time I send a url from a url list (string) and inject the...
View ArticleUnityWebRequest Timeouts (some times) but postman success (always)
We have a published game with +50k active users. we are using unity `WebRequest` to get configs from our server, I noticed on the hours of day that requests to our server are high, we encounter a lot...
View Article