-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Tried calling: []("queryText") #21
Comments
same here. |
You mean the query string should be in double quotes instead of single quotes? Like "hii" and not 'hi'?? Also my code uses double quotes but still it manages to find that error |
I mean that the query string includes single quote like [ I'm fine ] or [ thanks' ] that will trigger this error. |
Oh alright. I get it. However, my query string doesn't have any apostrophe or single quotes. Did you verify your OAuth screen? Just trying to know if it's needed. |
i have't verify my OAuth screen yet. |
I'll give it another try. |
I have the same issue. Any solutions? |
No. Can't even find anything on the internet. |
You may get error response from dialogflow. Can you edit the library file
print the response. You will get what is the error (Notes: try flutter clean cache and reinstall it). |
Any Solutions guys? I want to know what is the API used here so that I can manually get the response here. I tried in the Dialogflow docs but was unable to find anything on how to fetch the response using the API in v2. |
Dialogflow detectIntent API Doc Check the following code, take it as an example. Here I added payload, inputAudio and outputAudioConfig in body Params. Also I added extra attribute(_audioOutput) in AIResponse class and get attribute value in a function.
|
If you get error like ERROR: Tried calling: [ ] ( " queryText " ) this, You may get an error in the response. |
I'm having the same issue. Did you find any solution? |
No |
I found out I didn't saved Service account details in the https://console.cloud.google.com/iam-admin/serviceaccounts with the created JSON key. Double-check if your account has the key saved. |
Hey i solved it by using Dialogflow v1
your token can be found here https://dialogflow.cloud.google.com/#/editAgent/{your project id}/ |
At that link you get 'Project ID' and 'Service Account'. Where is the token? And if it has to do with the service account, which field is it? |
The docs for this package are not exactly right in the current version of Dialogflow as far as I can tell. He advises to create a NEW service account and key in the docs, but with the current release of Dialogflow, you actually have to use the EXISTING service account which you can find in the settings for your Agent. That's under the General tab. Click that gear in the top left of dialog flow to get to settings and just under the project id you should see the service account it is actually using. Note what it is called! From there, you need to go into Service Accounts in the GCP and find that same service account email and click it, then add a key, choose JSON, and download and link as described. This worked for me.... |
Yarhem waldin waldik <3 |
Thank you man you're a life saver |
Guys help i follow all instruction but i have complain ... E/flutter ( 1598): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null. |
Had the same issue. |
You're a life saver man. Spent around 4-5 hours on this issue. But finally resolved it. For me though, creating a new project with just 1 service account worked. Earlier I was trying to create a service account for an older project. |
ERROR LOG -
I've taken all the necessary steps in my view. Is there anything missing out? in the code or in the process of GCP Json file downloading. I've not verified the OAuth screen though. And my GCP account is NOT payment verified.
The text was updated successfully, but these errors were encountered: