cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Highlighted
Community Support
Community Support

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.
Highlighted

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

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-...

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,404)