Getting NotFoundHttpException when calling an action from a job #3537
Unanswered
bluezombie
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Since I need all the 'action' machinery around a resource (i.e. logs that are generated associated with a resource) I need to manually dispatch an action from a scheduled job. The job is scheduled to run every minute:
WatchFiles.php
` public function __construct()
{
When worker is up and running (launching "php artisan queue:listen") I get the following exception:
`
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
at vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1113
1109▕ */
1110▕ public function abort($code, $message = '', array $headers = [])
1111▕ {
1112▕ if ($code == 404) {
➜ 1113▕ throw new NotFoundHttpException($message);
1114▕ }
1115▕
1116▕ throw new HttpException($code, $message, null, $headers);
1117▕ }
I would appreciate any suggestions you may have.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions