API Version 2: Failed to parse JSON response string with 'INVALID_ARGUMENT
See original GitHub issueHi, I have this error in the assistant console
API Version 2: Failed to parse JSON response string with 'INVALID_ARGUMENT' error: "(response_metadata.status.details[0]): invalid value Missing @type for any field in google.actions.v2.AppResponse for type Any".
But I have setup the API Version 2 to off in the Dialogflow settings, since this node.js client does not currently supports the Dialogflow v2 api. How to force the v2 then?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
API Version 2: Failed to parse JSON response string with ...
I had this issue because I had not given any action name. Giving the action name resolved this for me.
Read more >Error while parsing JSON Response in REST API Post call
I switched to returning a JSON String and then Deserialize the JSON String, it still raises an error "Failed to parse response of...
Read more >Carousel Images Invalid Argument · Issue #212 · actions-on-google ...
API Version 2: Failed to parse JSON response string with 'INVALID_ARGUMENT' error: "(carousel_select.items[1].image): invalid value ...
Read more >HTTP status and error codes for JSON | Cloud Storage
The following document provides reference information about the status codes and error messages that are used in the Cloud Storage JSON API.
Read more >Error Responses - Amazon Simple Storage Service
Error Code Description HTTP Status Code
AccessControlListNotSupported The bucket does not allow ACLs. 400 Bad Request
AccessDenied Access Denied 403 Forbidden
BucketAlreadyOwnedByYou 409 Conflict (in all...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Anshini-Singh since you are using the v1 client library, and firebase functions 1.0.0, you need to change these parts of your code:
Instead of
It should be
Your original code should throw an error when called since the wildcard import of
actions-on-google
is not a class and is not instantiable. Check your firebase console function logs for errors.For Firebase Functions 1.0.0, you need to remove this part:
I am also facing the same issue. Here is the my code snippet. Please let me know if any other information required.
and these are the dependencies in my
package.json