I’m banging my head against the desk with this, I have a game working with http requests and everything works fine in the editor but as soon as I build for PC the request don’t work. All requests are being made to an https API with ssl, postman works, even the swagger I implemented in the backend works. Everything except Unity after build. The worst part is that I’ve worked on other games that use Http web requests with no problems.
using unity 2019.2
Anyone has any leads on this?
Thanks!
Please define “don’t work”. What is the return code of the API call during your debug session?
Hi Jeff, sorry for the late reply, I’ve been super busy at work. So I debugged by dumping the exception in the build version, the exception seems to be related to Newtonsoft not unity:
Exception:
Operation is not supported on this platform.
Stack:
at Newtonsoft.Json.Utilities.DynamicReflectionDelegateFactory.CreateDynamicMethod
It seems that Newtonsoft package is not working for builds, but we use this all the time at work for our company games. Also its very strange that it works on the editor but not the build.
Maybe I’m missing moving files manually after build or something, any thought on this?
Thanks!
1 Like
I believe if you do a Google search for “newtonsoft unity” you’ll find your answer. It’s been upgraded to a new name
Hi Juancho
sorry to interrupt but have you solved the issue. i have a similar issue where in i get no errors but when i build the apk or exe it doesnt work no errors either. nothing happens at all and even i used newtonsoft please help
I also have this issue, have you found the solution?