ifttt-ghpages icon indicating copy to clipboard operation
ifttt-ghpages copied to clipboard

IFTTT Webhooks Error

Open cmcgheit opened this issue 8 years ago • 2 comments

I am getting an error in IFTTT when I try to add the webhook:

I am trying to use it with Github and get an error with this code:

---|||layout: post|||network: github|||user: {{AuthorUsername}}|||repo: {{RepositoryName}}|||date: {{CreatedAt}}|||pr_title: {{PullRequestTitle}}|||pr_url: {{PullRequestURL}}|||title: {{PullRequestTitle}}|||tags:|||- IFTTT|||- Github|||---||| {{PullRequestBody}}

Am I suppose to assign those properties anywhere else but the .env file?

I also added those properties as ingredients individually in the body of the webhook on IFTTT and that was accepted, but then get an applet failed error?

cmcgheit avatar Dec 07 '17 02:12 cmcgheit

Hey there! Sorry this isn't working properly for you. A couple things I'd like to check to begin troubleshooting:

  • Are you using a glitch project for the webhook server, and did you specify that server URL properly to ifttt? https://ifttt-ghpages.glitch.me/?token=your-token is the webhook url for my glitch environment, but yours should be different.
  • Are there any server logs that indicate a problem in webhook processing? if you try and make a POST request to your webhook URL, does it respond as you expect it to? (you can test out POST requests with cURL, or with API testing tools such as Postman).

webrender avatar Dec 07 '17 16:12 webrender

Got it, I wasn't remixing the project completely.

I still had to use the add ingredients option in IFTTT to add:

{{RepositoryName}} {{RepositoryURL}} {{OwnerUsername}}

to my web request body. It wouldn't accept anything else. Should I be using:

---|||layout: post|||network: github|||user: {{AuthorUsername}}|||repo: {{RepositoryName}}|||date: {{CreatedAt}}|||pr_title: {{PullRequestTitle}}|||pr_url: {{PullRequestURL}}|||title: {{PullRequestTitle}}|||tags:|||- IFTTT|||- Github|||---||| {{PullRequestBody}}

instead?

I'll test with Postman.

cmcgheit avatar Dec 08 '17 04:12 cmcgheit