I have configured the webhook for shipment update and am getting the response but the response is irregular. I get the tracking number for some orders but the webhook is not getting called for other orders.
The response I get when I call https://api-gateway.shiphero.com/v1.2/general-api/get-webhooks/ -
{
“Message”: “success”,
“code”: “200”,
“webhooks”: [
{
“url”: “http://api.itsswoop.com/shipment/update”,
“source”: “api”,
“name”: “Shipment Update”
}
]
}
Just to clarify for some orders the webhook works perfectly fine but for others it’s not getting called. I am logging all the requests that come the webhook and I can see that it’s not even getting called for these order.
HTTPConnectionPool(host='api.itsswoop.com', port=80): Max retries exceeded with url: /shipment/update (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff1bc109590>: Failed to establish a new connection: [Errno -2] Name or service not known',))