Exception Not Thrown on Webhook Retry Failure #148
Unanswered
JimmyBastos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm encountering an issue with a project that utilizes
laravel-webhook-server@^3.6
within the Laravel Bref (Lambda) environment alongside SQS Queues. Specifically, I'm attempting to delegate webhook retries to the SQS queue. However, I've encountered a problem where an exception is not thrown when the final webhook retry fails, and the job is released from the queue.I've configured the webhook server with the following settings in the 'config/webhook-server.php' file:
Despite configuring it this way, when the webhook call job fails, the exception is not thrown, and the job execution is marked as successful.
Upon further investigation, I debugged the code in my local environment with a sync queue connection and noticed that the
->fail()
method is indeed being called in theCallWebhookJob
here. However, after taking a look at the LaravelCallQueuedHandler
implementation here, I realized that the exception is only thrown if the job itself explicitly throws an exception in itsfailed
method.This behavior seems inconsistent with the configured settings, and I believe it may be a problem in the
CallWebhookJob
.To reproduce the problem, I've provided a code snippet below:
Beta Was this translation helpful? Give feedback.
All reactions