question

brokenoval avatar image
brokenoval asked sam Deactivated commented

Webhooks work in setup but not from devices

I've just set up some webhooks for some basic call backs about app installs.

I managed to set up and verify the webhooks OK by receiving the code etc - as covered in the docs. And I can POST sample data to the webhook directly through a REST service like POSTman for testing. However when performing actions on the device I'm seeing reports from my server showing a 404.

It looks like our base URL is being prepended to the webhook (duplicated) and I can't figure out why.

For example, looking at my server logs, the failed webhook from the clover device looks like this:

[25/Nov/2016:18:29:45 +0000] "POST https://mydomain.com/api/clover/cloverWebhook HTTP/1.1" 404 525

But a successful webhook from a REST client or from Clover's webhook verification tool looks like this

[25/Nov/2016:18:32:59 +0000] "POST /api/clover/cloverWebhook HTTP/1.1" 200 40

As you can see in the 404 it would look like the endpoint being hit by the actual device is https://mydomain.com/https://mydomain.com/api/clover/cloverWebhook

Do you have any idea what I could be doing wrong?

Thanks!

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sam avatar image sam commented ·

Hi, Just as a clarification, you're not using Amazon's API Gateway service?

0 Likes 0 ·
brokenoval avatar image brokenoval commented ·

Hi @Sam - nope, not specifically. But our servers do sit behind Amazon ELB architecture. All our APIs operate the same way which is why I'm surprised this is giving a strange result in the logs

0 Likes 0 ·

0 Answers

Welcome to the
Clover Developer Community