Giter Site home page Giter Site logo

uniflow's Issues

Refresh Access Token

Hey, Thanks for such a detailed DiaglogFlowV2 pipeline. Earlier I was using V1 and it involved a very simple authentication process. But with V2 the authentication has become crazy difficult. Moreover, the Access Token generated gets expired in one hour. I tried searching for this but didn't find a solution. I can see people have solved it here, but I am not sure how to integrate same here.
Please Help!

iOS/Android mobile

Does this work with iOS/Android mobile - i notice that the credentials has to be set in environment path

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)
d__2:MoveNext() (at Assets/NewScript.cs:38)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
NewScript:Start() (at Assets/NewScript.cs:18)
################################################
400
UnityEngine.Debug:Log(Object)
d__2:MoveNext() (at Assets/NewScript.cs:51)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
################################################

HTTP/1.1 400 Bad Request
UnityEngine.Debug:Log(Object)
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,

A Problem

Hi Alice and your teammates! Thank you for sharing such lucid tutorial videos. I'm a designer and I'm doing a project related to audio interaction based on Unity. I have followed your steps, but a problem showed up when I was adding the "NewScript" to the camera, which is an AR camera based on Vuforia. An error "400 Bad Request" was requested in the console. I have checked some answers on StackFlow, but most of those solutions look like javascript rather than CSharp. I wonder if you have ever met the same problem and probably you may share your solutions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.