cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jean
Level: Powered On

Trigger - Webhooks

Hi all

 

I created a GitHub webhook, following the documentation at https://flow.microsoft.com/en-us/documentation/customapi-webhooks/

 

The webhook subscribes to `push` events. When I try to start the flow, the github connector fails with:

 

Invalid request. For 'properties/events', "push" is not an array.

 

 

Stepping through the flow definition I can't see where I'm going off course. It looks like the problematic step is the webhook trigger, which I "import from sample" as:

{"name": "web", 
"active": true,
"events": ["push"],
"config": {"url": "http://example.com/webhook"}
}

When I download the flow in swagger format, I see:

        "events": {
          "default": [
            "push"
          ],
          "description": "Events to listen on",
          "items": {
            "type": "string"
          },
          "type": "array"
        },

 

4 REPLIES 4
Community Support Team
Community Support Team

Re: Trigger - Webhooks

Hi @jean,

 

I'm investigating on this issue and will get back when I have further news.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jean
Level: Powered On

Re: Trigger - Webhooks

Hi Mona, thanks for the answer!

 

I have a detail that may help. I finally figured out where I can view the webhook on the GitHub end, namely at https://github.com/MYORG/MYREPO/settings/hooks/MYHOOK . To get there, navigate to Settings, Webhooks of the relevant repository and look for the webhook created by Flow.

 

In my case, the hook is attempting delivery and is showing a 404 error. The payload URL is http://example.com/webhooks as shown in the image following the text Microsoft Flow automatically adds standard content-type and security headers, so we don’t need to define those while importing from a sample. on https://flow.microsoft.com/en-us/documentation/customapi-webhooks/#creating-webhook-triggers-from-th...

 

create-new-trigger-2

I thought that that is a sample that would be updated by Flow with the proper callback URL.

What is the proper callback URL that should be specified there?

 

------

Here's the attempt at the GitHub side. Obviously that Request URL is never going to work ... :

 

Request URL: http://example.com/webhooks
Request method: POST
content-type: application/x-www-form-urlencoded
Expect: 
User-Agent: GitHub-Hookshot/7d741b5
X-GitHub-Delivery: bf9d6c60-565a-11e7-9e22-c46ce7ac59a8
X-GitHub-Event: push

 

Highlighted
jeffangama
Level: Power Up

Re: Trigger - Webhooks

any update ? same issue there, which url shall we specify in the GITHUB WEBHOOK payload URL when working with flow ? Nothing specified here neither : https://docs.microsoft.com/en-us/connectors/custom-connectors/create-webhook-trigger#create-webhook-...

varungore
Level: Powered On

Re: Trigger - Webhooks

Once you have created  a trigger with the sample request body, you should be able to see all the parameters as dropdown options in "Trigger Configuration".

 

 

image.png

Select config.url and flows will populate this property with call back url. (Note: this does not work as expected from Test tab, you will have to create a flow)

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 467 members 5,516 guests
Please welcome our newest community members: