Questions tagged [unitywebrequest]

97 questions
0
votes
2 answers

unknown error with the unitywebrequest function

I'm doing an apk which when I run it on my cell phone gives me the following error "Unknow error" but the strangest thing is that if it works normally when I run it from unity, I used the following code to show me what the error was when I…
Guayavas
  • 21
  • 2
  • 8
0
votes
1 answer

No response to UnityWebRequest on build to http server

I've got an Android app I'm building with Unity that logs info on a simple python http server (hosted on a Digital Ocean Droplet). Here's my coroutine for poking the server: IEnumerator pokeServer() { Debug.Log( "Establishing Server…
0
votes
0 answers

Uploading large files using UnityWebRequest

I have an API to upload file to Microsoft Azure blob storage. Users can be uploading large files. Webclient handles files automatically, but its progress change event doesn't work. Here is a link to that issue though: UploadProgressChanged Event Not…
0
votes
1 answer

Get image from a server in Unity 2018

I need to receive image from a simple server, using wgsi, in my client app in Unity3D. My code looks like this for now: Server part: if environ['REQUEST_METHOD'] == 'GET': status = '200 OK' headers = [('Content-type', 'image/png')] …
-1
votes
1 answer

'UnityWebRequest' does not contain a definition for 'result'

When I use the code satable for the unity 2021 in the unity 2019. The console shows that 'UnityWebRequest' does not contain a definition for 'result' and no accessible extension method 'result' accepting a first argument of type 'UnityWebRequest'…
-1
votes
1 answer

Converting String to Json Properly from the Dictionary

I would like to send a json request to a flask server. I use UnityWebRequest to do so as following, IEnumerator Post(string url, string bodyJsonString) { var request = new UnityWebRequest(url, "POST"); byte[] bodyRaw =…
user1241241
  • 664
  • 5
  • 20
-2
votes
1 answer

Sending a post request with body and a header in it with UnityWebRequest

I am trying to send a post request to an Api called Paycell Api. I dont need to authenticate for testing the request. When I send the request with PostMan, it returns 200 OK. Here is the exact request. { "msisdn": "5380521479", …
htpck
  • 11
  • 7
1 2 3 4 5 6
7