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.

WebhookRequest is missing Parameters

See original GitHub issue

I have a webhook set up in ASP.NET Core 2.1. If I use:

public ContentResult Post([FromBody] Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2WebhookRequest webhookRequest)

I can get my parameter by using the following syntax:

queryResult.Parameters["MyParameter"]

However, if I use:

public ContentResult Post([FromBody] Google.Cloud.Dialogflow.v2.WebhookRequest webhookRequest)

There are no parameters:

queryResult.Parameters.Fields["MyParameter"]

QueryResult.Parameters is always empty.

Am I doing something wrong or is this a bug? Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
jskeetcommented, May 10, 2019

@RasmusKauffeld: Could you either file a new issue for this, or possibly ask on Stack Overflow? That would be better than adding to an existing but slightly different question. It would be good if you could show what you’ve tried so far and how close it gets. For list values, it’s simplest to use Value.ForList(value1, value2, ...) - hopefully that’ll help you get started.

1reaction
jskeetcommented, Aug 20, 2018

I’ve now added an example of how to implement a web hook in ASP.NET Core in the documentation:

https://googlecloudplatform.github.io/google-cloud-dotnet/docs/Google.Cloud.Dialogflow.V2/index.html

I’ll close this issue now, but do add more comments if it doesn’t help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dialogflow WebhookRequest parameter list empty in C# . ...
Seems like "parameters" should contain the parameters I put in the Dialogflow console for the Weather intent. In my C# .NET Web API...
Read more >
Our Request to your Webhook URL
What does Twilio send in its request to your webhook URL? See what parameters are included for SMS and WhatsApp-messages using Programmable Messaging....
Read more >
WebhookRequest - Documentation
Decodes a WebhookRequest message from the specified reader or buffer, length delimited. Parameters: Name, Type, Description. reader, $protobuf.Reader ...
Read more >
Missing Account ID field in Webhook payloads
Navigate to your workspace's settings;; Under Security, click on SSH Keys;; Locate the Key that's being used for push and click on the...
Read more >
Package google.cloud.dialogflow.cx.v3
Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level.
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