question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dialogflow.v2beta1 : Problem with session name patterns with DetectIntentRequest

See original GitHub issue

I’m having trouble sending detectIntentRequest to my Dialogflow agent with Google.Apis.Dialogflow.v2beta1 .NET package.

According to comments in Google.Apis.Dialogflow.v2beta1.cs, in order to make a DetectIntentRequest, the session string parameter should follow the pattern : projects//agent/sessions/, or projects//agent/runtimes//sessions/

Using the second pattern (projects//agent/runtimes//sessions/), I get error from the API: Resource name does not match ‘projects//agent/sessions/’. [400]"

Using the first pattern (projects//agent/sessions), I get error from the google-api-dot-net-client: "Parameter validation failed for ‘session’ ".

In fact, the client code accepts only the second pattern (see Google.Apis.Dialogflow.v2beta1.cs, line 2928), which seems to be not accepted by the API.

I’m stuck. Can you tell me how to use the DetectIntentRequest feature with client ?

Thank you! 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
jskeetcommented, May 8, 2018

Although I’d suggest using Dialogflow v2 now that that’s out 😃

0reactions
chrisdunelmcommented, May 8, 2018

The ‘runtimes’ path was renamed to ‘environments’, and also now includes a user in the path. The most recent dialogflow v2beta1 nuget package v1.33.0.1218 contains the correct code. The correct path is now: projects/{projectsId}/agent/environments/{environmentsId}/users/{usersId}/sessions/{sessionsId}.

Closing as I believe this resolves this issue. If not, please leave another comment with details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package google.cloud.dialogflow.v2beta1
Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the...
Read more >
v2beta1 - Documentation
The Cloud Speech documentation describes which models have enhanced variants. If the API caller isn't eligible for enhanced models, Dialogflow returns an error....
Read more >
sessions
Deletes all active contexts in the specified session. Args: parent: string, Required. The name of the session to delete all contexts from. Format:...
Read more >
Dialogflow is not detecting the intent with context
I am connecting to Dialogflow REST API v2beta1 to the method: projects.agent.sessions.detectIntent . In the first request I send a text and the ......
Read more >
dialogflow
Package dialogflow is a generated protocol buffer package. It is generated from these files: google/cloud/dialogflow/v2beta1/agent.proto ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found