laravel-sqs-fifo-queue icon indicating copy to clipboard operation
laravel-sqs-fifo-queue copied to clipboard

Target class [XXX] does not exist of message from AWS SQS Queue

Open xpalacinengelsolar opened this issue 1 year ago • 0 comments

When Laravel process queue, not resolve class from SQS message.

The SQS message is: JSON { "uuid":"1234", "displayName":"offer_status_changed", "job":"offer_status_changed", ... "data":{ "id":71, ... } }

The job name not include class namespace and Laravel throw errors:

  • Target class [offer_status_changed] does not exist
  • [object] (ReflectionException(code: -1): Class \"offer_status_changed\" does not exist

I understand that job should include namespace with method "job":"App\\Jobs\\offer_status_changed@handle",

xpalacinengelsolar avatar Dec 01 '23 10:12 xpalacinengelsolar