Search Issue Tracker
Fixed in 2018.3
[UWP] App crashes when calling UnityWebRequest.SendWebRequest() if URL contains domain name and port
Steps to reproduce:
1. Download attach project
2. Switch platform to UWP
3. Build the project
4. Open VS solution
5. Build project (Debug, x64, Local Machine)
Results: UnityWebRequest.SendWebRequest() fails if URL contains domain name and port
Reproduced with: 2018.3.0a10, 2018.2.6f1, 2018.1.9f1, 2017.4.9f1
Note: reproducible on .NET and IL2CPP backends
Prefixing the URL with a valid protocol will prevent the crash, e.g. "http://" or "https://"
Typically, a default protocol (http://) is automatically prefixed to the URL if one isn't specified, but in this case, using a domain and port number, the prefix isn't applied causing an unhanded exception in the WinRT API NetworkInformation::GetProxyConfigurationAsync. Specifying a fully qualified URL will prevent this.
The unhanded exception has been fixed for 2019.1.0a2, but WebRequest behavior won't be changed to automatically prefix http:// when using a URI with domain and port. This means the WebRequest URI "httpbin.org:12345" will still fail to connect while "httpbin.org" will succeed.
Regardless, it's strongly recommended to always specify a fully qualified URI for any connection (local or remote) to avoid unexpected behavior.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- The Motion field of the Blend Tree doesn't get set when double clicking on the Motion in the Select Motion window
- Application.systemLanguage returns "Unknown" when system language is set to Norwegian Bokmål/Nynorsk
- Project fails to load scene in WebGL due to lack of memory
- [Mobile] DownloadHander.text throws an exeption when reading a not supported exception
- Particle System's Point Light flickers while Looping is on and Emission Rate over Time is set to 0 with Bursts Count set to 1