I’m having a very frustrating problem with my WebGL game.
I have built an Azure Function that my game client calls, the Azure function gets the token from a 3rd party, and passes it back to the game client.
The problem is, any request from RU, AM, KZ, as well as requests from JP and UA seem to have a problem making the request from my game client to the Azure Function. There is no error or exception in the Azure Function, and I have asked the 3rd party to check their side and they don’t see any failed requests.
So the problem definitely lies in Unity making the HTTP request.
I initially tried using UnityWebRequest, then I also tried SimpleHttp from GitHub.
The error I get back from UnityWebRequest/SimpleHttp is just an unknown error.
Which is not helpful at all. I am using Unity 2020.3.12.
I even tried forcing all the strings in the request params/url to a CultureInfo of en-US, thinking a strange character might be inserted in the request or something, but this doesn’t make a difference.
So, there shouldn’t be anything different between Unity’s web requests and a regular Javascript request. So can you place a Javascript XHR or Fetch request to your Azure function in your page (either the Unity template, or your own JS code that you load in the HTML page), with some mechanism to capture the error and send it back to you, and post what that returns?
Unfortunately I’m not in a position to reproduce this error myself, its being logged in Raygun by players from these regions, and I don’t have any contact info with.
I’m guessing the best would be for me to use a VPN and change my browser language to RU and see if I can reproduce.
But thanks, this seems like the only possible way to investigate further.