We're trying to develop webhooks handling in our payment application. For development we have set up an AWS ELB to reroute to the internal development machine, and we are setting the webhook to go to the public address published by the ELB. We got the "Test Webhook" button to say "ping successful" ... exactly once. It showed "ping successful" that one time, even though our application returned a 404 error because the code to decode the webhook payload hasn't been written yet.
But thereafter, we now always see the message "Error occured in connecting to the endpoint" shown in the Auth.net control panel when we try that test. We are able to check the network logging from the ELB, and none of the additional test requests are ever making it there now, much less to our development workstation. Is there something that could cause the "Test Webhook" button to stop working if it gets a 404 response? Failing that, has anyone done anything with an AWS ELB in this regard and seen similar problems with webhooks in their sandbox?
Solved! Go to Solution.
11-20-2019 02:48 PM
11-21-2019 11:50 AM
11-21-2019 11:50 AM
11-21-2019 11:52 AM
Thanks for the input. We have had the 2nd level DNS published for years, and the specific 3rd level DNS was created more than a week ago, so as much as I wish it was, I don't think DNS resolution is to blame.
Regarding localhost, our configuration is that the ELB is forwarding these webhook messages to the internal development workstation via a VPN which knows the IP addresses of our internal systems. We can hit the same URL as specified for the webhook manually with an external browser and it reaches the endpoint in our application runnng on the development workstation in question, and we also see traffic logs of all such accesses from the ELB as well as seeing the actual code hit in our application. But when we test the webhook that is pointed to that exact same URL (or when we set the webhook to active and then send through a payment on that sandbox), we get the message from Auth.net (for the webhook test only) that it couldn't resolve that URL, and we never see any network hit reaching the ELB in association with those tests. Except, as I said, for the initial webhook test, which did make it through all of that and to our development workstation, but nothing since then, which is why I was concerned about the webhook being silently disabled for a 404 or something. I am also concerned that AWS might have some sort of DDOS blocking that could have kicked in after repeated webhook messages from Authorize.net, but our network/AWS specialist assures me this is not the case.
Thanks again, and please let me know if this brings to mind any other possible explanations.
11-21-2019 12:13 PM
Okay, as of this afternoon it looks like you were probably correct in identifying DNS resolution as the culprit, because it has started working consistently without any further changes on our side. Which is a little trouble in its own way, because if this DNS has existed for upwards of two weeks, and if it might take that long for the Auth.net DNS to update, I can imagine it becoming an issue for new production environments as well (if the production webhooks have the same kind of delay). But for now I'm just happy that I can start developing code for handling the webhooks now. Thanks much.
11-22-2019 11:51 AM
I imagine that somehow in the mix your ELB has caused a longer delay. I haven't seen 2 weeks, but 3 days I've seen consistently. Might also be a hiccup with auth.net. Also your TTL could have impacted it if you've been rerouting.
You will be fine for production, I think.
11-23-2019 12:58 AM