uniFlow
uniFlow copied to clipboard
HTTP/1.1 400 Bad Request Error when executing PostRequest()
Hello,
The error comes after the step 5 of the tutorial uniFlow: Dialogflow V2 Unity Plugin Prototype : https://itp-xstory.github.io/uniFlow/#step5
I changed the post request routine as following : PostRequest("https://dialogflow.googleapis.com/v2/projects/my_project_name/agent/sessions/34563:detectIntent", my_token_from_previous_steps)); and also in the bottom as described in the video. But, when running the example in unity i get the following 03 outputs : ################################################ { "queryInput": { "audioConfig": { "audioEncoding": 0, "sampleRateHertz": 0, "languageCode": "", "phraseHints": [] } }, "inputAudio": "" } UnityEngine.Debug:Log(Object) <PostRequest>d__2:MoveNext() (at Assets/NewScript.cs:38) UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) NewScript:Start() (at Assets/NewScript.cs:18) ################################################ 400 UnityEngine.Debug:Log(Object) <PostRequest>d__2:MoveNext() (at Assets/NewScript.cs:51) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) ################################################
HTTP/1.1 400 Bad Request UnityEngine.Debug:Log(Object) <PostRequest>d__2:MoveNext() (at Assets/NewScript.cs:52) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) ################################################ The mentionned lines from the NewScript.cs script are : 18 : calling the PostRequest( 38 : Debug.Log(jsonRequestBody); 51 : Debug.Log(postRequest.responseCode); 52 : Debug.Log(postRequest.error);
I'm using unity 2019.3.7f1 in Windows10-x64, and i followed the tutorial step by step, could you help please ?
Thank you,
Did you manage to figure this out? I am having the same problem.
i too having same issue
I too have the problem and has anyone solved the issue?
Did anyone manage to solve this issue?