Not signed in
Copyright © 2026 Unity Technologies
The 502 error indicates an issue on the server side. UnityWebRequest works as intended. If it's not reproducible, then it probably was a temporary infrastructure issue.
Hello
In our project, we started to use UnityServices for Remote config, AB testing, and In-app purchases.
Since that time we are getting the error that is caused by some internal unity services calls (see below).
This is nothing we do explicitly, seems that the endpoint is called by Unity services and this call is not under our control. Not sure if the problem is on Unity servers or if there is a problem with the configuration of our project. Any help will be appreciated as this spams our log. A simple solution is to suppress this error log, but in that case, we will not see similar 502 Bad Getway logs that will be valid for our project.
We tested this with the following Unity
2020.3.22f1
2021.3.25f1
Both these version seems to be affected by the error.
Below is the complete log of the HTTP request
POST https://operate-sdk-telemetry.unity3d.com/v1/record HTTP/1.1
Host: operate-sdk-telemetry.unity3d.com
User-Agent: UnityPlayer/2020.3.22f1 (UnityWebRequest/1.0, libcurl/7.77.0-DEV)
Accept: /
Accept-Encoding: deflate, gzip
Content-Type: application/json
X-Unity-Version: 2020.3.22f1
Content-Length: 1372
{"metrics":[{"name":"package_init_time","value":0.0,"type":"HISTOGRAM","tags":{"package_name":"com.unity.purchasing","package_version":"4.5.0"}},{"name":"package_init_time","value":0.066356699999999991,"type":"HISTOGRAM","tags":{"package_name":"com.unity.services.core","package_version":"1.7.0"}},{"name":"package_init_time","value":0.0012369,"type":"HISTOGRAM","tags":{"package_name":"com.unity.services.authentication","package_version":"2.4.0"}},{"name":"package_init_time","value":0.3974969,"type":"HISTOGRAM","tags":{"package_name":"com.unity.services.analytics","package_version":"4.0.1"}},{"name":"package_init_time","value":0.0040519,"type":"HISTOGRAM","tags":{"package_name":"com.unity.remote-config-runtime","package_version":"3.1.3"}},{"name":"package_init_time","value":0.025442,"type":"HISTOGRAM","tags":{"package_name":"com.unity.purchasing","package_version":"4.5.0"}},{"name":"all_packages_init_success","value":1.0,"type":"SUM","tags":{"package_name":"com.unity.services.core","package_version":"1.7.0"}},{"name":"all_packages_init_time","value":0.4993855,"type":"HISTOGRAM","tags":{"package_name":"com.unity.services.core","package_version":"1.7.0"}}],"commonTags":
{"application_install_mode":"Unknown","operating_system":"Windows 10 (10.0.22621) 64bit","platform":"WindowsPlayer","engine":"Unity","unity_version":"2020.3.22f1"},"metricsCommonTags":{}}
RESPONSE:
HTTP/1.1 502 Bad Gateway
Content-Type: text/html; charset=[Internal link]
Referrer-Policy: no-referrer
Content-Length: 332
Date: Thu, 27 Apr 2023 06:39:34 GMT
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>
And also the error that is reported by UNITY - seems that the error is not handled properly and then it is reported unhandled exception when the object is collected by the garbage collector. The exact stack trace is below.
Rouvy.Backend.Logging.LoggingManager.TaskScheduler_UnobservedTaskException() ( LoggingManager.cs )
Rouvy.Backend.Logging.LoggingManager.TaskScheduler_UnobservedTaskException() ( LoggingManager.cs )
System.Threading.Tasks.TaskScheduler.PublishUnobservedTaskException() ( TaskScheduler.cs )
System.Threading.Tasks.TaskExceptionHolder.Finalize() ( TaskExceptionHolder.cs )
Note: Testing was not done by CQA due to the issue not being reproducible and no consistent steps being found to reproduce locally
Sign in to see your voted issues