-
-
Notifications
You must be signed in to change notification settings - Fork 377
Webhooks don't work #64
Comments
I just tested a webhook and all went well on my end, do you have any error messages? |
I am getting undefined variable shopDomain |
Shop domain comes from x-shopify-shop-domain header and body comes from the request. You're saying you're not getting either? What type of webhook is this? Odd because the auth.webhook middleware would fail if the shop was missing. |
I tried it on another page and I get that error. Is that only valid for the webhook? The webhook gets the request from shopify and gives it to the worker which is then processed, I do not get any errors in my worker database tables but when I try any webhook it doesn't actually do what it should. Would the errors appear in the laravel log or the php log? |
public function __construct($shopDomain, $data) |
When you say you try the job, what do you mean by this? If theres any errors it may be in the php/laravel log yes. If the job gets the queue, then it has passed the validation on the middleware, which means it should have all the data it needs to run. |
I used different webhook actions such as delete a product from my shopify store, as well as delete the app but it doesn't process anything from the database. |
@demoskp Can you share the route, the controller action that the route points to, your webhook job and your shopify-app config file showing the webhook? This is going to be difficult to troubleshoot without having the entire flow. Thanks. |
It was my fault, I had changed a domain for the app but forgot to update the webhook links in the app configuration. |
I have updated the package to 2.2.0 and my webhooks stopped working, my guess is that the domain token has changed.
Am I not able to call the shop domain from my webhook job using $shopDomain and the response from shopify with $data?
The text was updated successfully, but these errors were encountered: