Out now! Check out the Poll results: Do you have a Shopify store?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Our Webhook has stopped working

Our Webhook has stopped working

SiyonaS
Tourist
13 0 1

We have a private app created in shopify and the moment we have received the app update notification, our webhook stopped working.

Can you please help?

Replies 11 (11)

Jason
Shopify Partner
11206 226 2315

Does the webhook subscription still exist or has it been deleted?
Have your tried testing the webhook being sent to another location in case it's your tech stack being the problem?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
SiyonaS
Tourist
13 0 1

We also have few other webhooks which are working fine.

Only the one which uses this API Key 0a53154f5292779574ea039e1ca14d26 is not working.

Jason
Shopify Partner
11206 226 2315

First step is confirming that the webhook subscription still exists.
Since it's bound to that key, you should first check to ensure it has not been deleted. If it has, that quickly explains why you're not seeing anything.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
SiyonaS
Tourist
13 0 1

How can we check that? also to add all our other webhooks are working perfect.

Jason
Shopify Partner
11206 226 2315

Do a GET request with that key and see what comes back. 

See the docs:
https://shopify.dev/docs/admin-api/rest/reference/events/webhook#index-2021-04

GET /admin/api/2021-04/webhooks.json

 

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
SiyonaS
Tourist
13 0 1

Sure I will try this.

 

Also, we are getting this message in our private apps section,

'Some of your private apps may not work as expected because they’re calling unsupported APIs'.

And this app credentials is called in our salesforce code, when we do a request, is send bake bad data error.

Jason
Shopify Partner
11206 226 2315

Sounds like you're using old and unsupported versions of the API.
Also quite possible this relates to your webhook issue depending on the API version that was requested.


https://shopify.dev/concepts/about-apis/versioning

 

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
SiyonaS
Tourist
13 0 1

That sounds fair enough.

Can you please help us, as to how can we have the latest version of app?

Where can we make this change? 

SiyonaS
Tourist
13 0 1

Also as suggested earlier, we tried the GET method and this is what we received in our debug logs,

16:31:03:268 USER_DEBUG [82]|DEBUG|calloutResponse::System.HttpResponse[Status=Bad Request, StatusCode=400]

tdenglish
Visitor
1 0 0

Hi Siyona!

We're experiencing a similar situation that started about the same time as yours. Our Shopify store has stopped communicating with our Learning Management System (LMS). We've updated our webhooks to the current API version but it is still not working...are you still having troubles?

SiyonaS
Tourist
13 0 1

I was able to resolve the issue by specifying  a location_id when creating fulfillments

Followed this link : https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillment

Thank you for you help @JasonW .