-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No query results for model [Spatie\WebhookClient\Models\WebhookCall] #49
Comments
Dear contributor, because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it. |
@averageflow I'm having a very similar issue. Same error when deployed (Laravel Vapor with SQS) but runs fine locally (MacBook running Homestead Ubuntu & Redis). Did you get anywhere with this? |
I'm getting this error as a JSON response to my Stripe AJAX fetch while developing on localhost. Anyone have any idea how to fix it? It seems the package is interfering with my Stripe payment element, it's currently not even displaying since I integrated the package via a job. |
After struggling with this for some time, I found that the issue is because of different ways of accessing the payload from the handle() method. Previously, I was accessing the payload like this:
But that no longer works in version 3, and will throw the "No query results for model" error. I changed it to this:
And now it works great. Hope this helps someone! |
I was experiencing the At first, it was hard to troubleshoot because on Zoho's end, I was able to "resend" webhooks - and those resends were processing just fine and I wasn't able to reproduce it. Eventually I thought it might be related to race conditions and db transactions, because the issue seemed to occur when a stream of consecutive webhooks were received in rapid succession. So I did two things:
This appears to have resolved things, at least on an anecdotal level. I would need to write some formal tests to confirm for sure whether the |
Hello Spatie team, I am using your package and really find it great, works perfectly, thing is when I run it in my MacBook I don't get any issues, but when I deploy to production, some of my webhook calls throw this error, not all of them, that is why I am a bit puzzled, what does this mean? How could I fix it? Missing something?
No query results for model? But my webhook_calls table gets filled and emptied.. How can i find the problem here?
The text was updated successfully, but these errors were encountered: