cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jean 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
Community Support
Community Support

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 Advocate I
Advocate I

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

 

jeffangama
Regular Visitor

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
Regular Visitor

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,124)