Git Product home page Git Product logo

Comments (9)

demoskp avatar demoskp commented on August 22, 2024 1

It was my fault, I had changed a domain for the app but forgot to update the webhook links in the app configuration.

from laravel-shopify.

gnikyt avatar gnikyt commented on August 22, 2024

I just tested a webhook and all went well on my end, do you have any error messages?

from laravel-shopify.

demoskp avatar demoskp commented on August 22, 2024

I am getting undefined variable shopDomain

from laravel-shopify.

gnikyt avatar gnikyt commented on August 22, 2024

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?
Can you share the constructor?
Is it going through the webhook controller or did you do something custom?

Odd because the auth.webhook middleware would fail if the shop was missing.

from laravel-shopify.

demoskp avatar demoskp commented on August 22, 2024

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?

from laravel-shopify.

demoskp avatar demoskp commented on August 22, 2024

public function __construct($shopDomain, $data)
{
$this->shopDomain = $shopDomain;
$this->data = $data;
}

from laravel-shopify.

gnikyt avatar gnikyt commented on August 22, 2024

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.

from laravel-shopify.

demoskp avatar demoskp commented on August 22, 2024

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.

from laravel-shopify.

brianakidd avatar brianakidd commented on August 22, 2024

@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.

from laravel-shopify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.