Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST /webhooks -> Confirmation request failed! #104

Open
ProductOfAmerica opened this issue May 8, 2024 · 1 comment
Open

POST /webhooks -> Confirmation request failed! #104

ProductOfAmerica opened this issue May 8, 2024 · 1 comment

Comments

@ProductOfAmerica
Copy link

ProductOfAmerica commented May 8, 2024

Original Request

Body:

{
  "events": ["fieldCreated"],
  "name": "Name Here",
  "secret": "mySecret",
  "url": "https://www.myurl.co/leaf/satellite"
}

Response:

{
    "type": "https://docs.withleaf.io/alerts_endpoints",
    "status": 400,
    "path": "/api/alerts/webhooks",
    "message": "Confirmation request failed! Webhook returned a non 2xx successful status code. Actual response was: 404 )",
    "errorKey": "non2xxSuccessfulStatusCode",
    "entityName": "Webhook"
}

Weirdly, not including the www returns a 307 (e.g.):

Body:

{
  "events": ["fieldCreated"],
  "name": "All listeners 3",
  "secret": "mRyT257XpFWX",
  "url": "https://myurl.co/leaf/satellite"
}

Response:

{
    "type": "https://docs.withleaf.io/alerts_endpoints",
    "status": 400,
    "path": "/api/alerts/webhooks",
    "message": "Confirmation request failed! Webhook returned a non 2xx successful status code. Actual response was: 307 )",
    "errorKey": "non2xxSuccessfulStatusCode",
    "entityName": "Webhook"
}

This was working not 30 minutes ago, no problem, I was adding webhooks fine. Now all of a sudden, getting 400 errors. I changed no code. The service just stopped working.

Using: https://api.withleaf.io/services/alerts/api/alerts/webhooks

@ProductOfAmerica
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant