Giter Site home page Giter Site logo

A Problem about uniflow HOT 8 CLOSED

itp-xstory avatar itp-xstory commented on June 10, 2024
A Problem

from uniflow.

Comments (8)

koji avatar koji commented on June 10, 2024

@marialulu
As you may know, 400 Bad Request is caused by the client-side.
Mostly, using invalid endpoints(missing parameter or token info, etc) or cookies issue.
I recommend you to check the endpoints you're using works on a web browser.

from uniflow.

Pepper2020 avatar Pepper2020 commented on June 10, 2024

Yes, you are right. It came out to be an error when I run the endpoints on a web browser. Then I tried the endpoint in the video and there was still an error. Do you guys know what may cause this problem? My terminal said "Your Google Cloud SDK is configured and ready to use!", I got the token and the project ID was copied from Dialogflow console. I'm confused...

from uniflow.

koji avatar koji commented on June 10, 2024

you can try the API with your cred.
https://cloud.google.com/dialogflow/docs/reference/rest/v2-overview
If you get an error, probably you may select a wrong role.
https://dialogflow.com/docs/reference/v2-auth-setup.

If your cred works properly, uniFlow itself has an issue like need more parameters which means you need to modify the codebase.

from uniflow.

Pepper2020 avatar Pepper2020 commented on June 10, 2024

Thank you for your patience. Now the error is 401 unauthorized... Do you have a clue?

from uniflow.

koji avatar koji commented on June 10, 2024

@marialulu you mean with Google api test tool or with unity?
anyways, 401 means your cred is something wrong.
you should follow this, https://dialogflow.com/docs/reference/v2-auth-setup

from uniflow.

Pepper2020 avatar Pepper2020 commented on June 10, 2024

It’s in Unity. Sorry to behave like an idiot!

from uniflow.

koji avatar koji commented on June 10, 2024

As I wrote, 401 is your cred's issue.
can you follow the above link and try your cred with google's api test tool?

the endpoints uniFlow uses are the followings.
https://github.com/ITP-xStory/uniFlow/blob/master/Assets/Plugins/DialogflowAPIScript.cs#L17

https://github.com/ITP-xStory/uniFlow/blob/master/Assets/Plugins/DialogflowAPIScript.cs#L66

from uniflow.

Pepper2020 avatar Pepper2020 commented on June 10, 2024

Thank you I will do!

from uniflow.

Related Issues (6)

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.