# Shipment webhook getting called irregularly

**URL:** <https://community.shiphero.com/t/shipment-webhook-getting-called-irregularly/251>\
**Category:** GraphQL API\
**Created:** [December 3, 2019, 8:06am UTC](https://community.shiphero.com/t/shipment-webhook-getting-called-irregularly/251 "2019-12-03T08:06:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddharth\_singh](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@siddharth\_singh](https://community.shiphero.com/u/siddharth_singh)\
**Post date:** [December 3, 2019, 8:06am UTC](https://community.shiphero.com/t/shipment-webhook-getting-called-irregularly/251/1 "2019-12-03T08:06:22Z")

</div>

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/](https://api-gateway.shiphero.com/v1.2/general-api/get-webhooks/) -  
{  
“Message”: “success”,  
“code”: “200”,  
“webhooks”: [  
{  
“url”: “[http://api.itsswoop.com/shipment/update](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.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [December 3, 2019, 1:47pm UTC](https://community.shiphero.com/t/shipment-webhook-getting-called-irregularly/251/2 "2019-12-03T13:47:13Z")

</div>

Hi @siddharth_singh !  
Do you have an Order ID of the order that didn’t trigger the webhook?

---

<div class="post-metadata">

**Author:** ![siddharth\_singh](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@siddharth\_singh](https://community.shiphero.com/u/siddharth_singh)\
**Post date:** [December 3, 2019, 3:25pm UTC](https://community.shiphero.com/t/shipment-webhook-getting-called-irregularly/251/3 "2019-12-03T15:25:42Z")

</div>

I have many like this order - 1365534  
I had to manually call the order api and update the shipment info.

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [December 4, 2019, 3:47pm UTC](https://community.shiphero.com/t/shipment-webhook-getting-called-irregularly/251/4 "2019-12-04T15:47:57Z")

</div>

Hi @siddharth_singh  
Can’t seem to find that order number 1365534. Is there any chance you might be referring to another order?  
Thanks!

---

<div class="post-metadata">

**Author:** ![siddharth\_singh](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@siddharth\_singh](https://community.shiphero.com/u/siddharth_singh)\
**Post date:** [December 4, 2019, 3:48pm UTC](https://community.shiphero.com/t/shipment-webhook-getting-called-irregularly/251/5 "2019-12-04T15:48:44Z")

</div>

@tomasw any update on this -  
1370264

you can see this order [https://app.shiphero.com/dashboard/orders/details/110883326](https://app.shiphero.com/dashboard/orders/details/110883326)

When I open the order it shows this -

Updated Store With Shipment Data?  
No

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [December 4, 2019, 6:35pm UTC](https://community.shiphero.com/t/shipment-webhook-getting-called-irregularly/251/6 "2019-12-04T18:35:59Z")

</div>

Hi @siddharth_singh  
Looks like the URL “[http://api.itsswoop.com/shipment/update”](http://api.itsswoop.com/shipment/update%E2%80%9D) may not be responding.  
I’ve been trying a POST request and getting a 502 Bad Gateway.  
The error for that specific shipment is:

`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',))`
