Potential bug - error 404, no query results for model [Spatie\WebhookClient\Models\WebhookCall] #109
Replies: 2 comments 1 reply
-
I currently don’t have time to look into this in detail. The tests prove that this package is working correctly. Can you PR a failing test (and a fix should the package be in error)? |
Beta Was this translation helpful? Give feedback.
-
I recently ran into the Quoting from my comment at: spatie/laravel-webhook-client#49 (comment)
|
Beta Was this translation helpful? Give feedback.
-
I've set up my Stripe webhooks as shown in the documentation and using the Stripe CLI have confirmed that all of the events are returning status code 200. However, when I navigate to my payment view (where my Stripe form should be displaying but isn't due to the error) I can see the following in my Laravel log file:
When I do the only thing I can think of to fix this error and pass $webhook through to each preceding method and then finally to the dispatch call for PaymentIntentSucceeded like so:
...I get an even weirder error as a response:
This error doesn't even show in my Laravel log file and can only be seen from my dev tools. Searching Google for it tells me that it's an error returned by FindOrFail(), but since I'm not using one in my code I'm guessing this is a bug with the package, especially since I'm getting the error after following everything the documentation says.
PaymentIntentSucceeded:
stripe-webhooks:
Route file:
Any ideas? I can also provide more of the code if necessary, like most Stripe payment forms the request originates from a client-side AJAX fetch, which then goes to a payment route, then to the controller which dispatches the job.
Beta Was this translation helpful? Give feedback.
All reactions