Tag: unity-game-engine
-
UnityWebRequest works only in the editor, not in the standalone build
-1 I noticed that UnityWebRequest is working BUT only in editor mode. When I build the game (in this case Im building Standalone for Windows 10) the response code is "200", but the {response.webRequest.downloadHandler.text} is equal to: "{"Errors":[{"extensions":{"internal":{"no connection to the server…. ecc… I knew that if response code equals 200 it means the connection…
-
Unity returns “400 (Bad Request) Error” on sending login-mutation to local graphql-server
0 i try to login into my local graphql-server from unity. the mutation works from apollo-client and postman, but with the unity.webrequest i get 2 errors. the first one: Network error: HTTP/1.1 400 Bad Request UnityEngine.Debug:LogError (object) GraphApi/<LoginMutation>d__3:MoveNext () (at Assets/GraphApi.cs:61) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) and the second: Response body: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8">…