Skip to content

WebhookInstaller Job Fails #413

@iamaks1993

Description

@iamaks1993

For bug reporting only! If you're posting a feature request or discussion, please ignore.

Expected Behavior

Please describe the behavior you are expecting.
The WebhookInstaller job should complete successfully and register the necessary webhooks

Current Behavior

Please describe the current behavior?

After the app is installed, the job Osiset\ShopifyApp\Messaging\Jobs\WebhookInstaller is failing, however user/shop is correctly created in the database and the app works as expected.

Additionally, when the app is uninstalled from the Shopify admin, the app/uninstalled webhook is not received.

Failure Information

Please help provide information about the failure if this is a bug.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Install the app on store

  2. Observe the job queue or logs for failure related to WebhookInstaller.

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Package Version: v23.0.0
  • Laravel Version: v12.10.0
  • PHP Version: v8.3
  • Template Engine: Blade
  • Using a toolset (Docker, Laradock, Vagrant, etc.): Ddev

Failure Logs

Please include any relevant log snippets or files here.

Failing job exception

Exception: 1 in /var/www/html/vendor/kyon147/laravel-shopify/src/Services/ApiHelper.php:521
Stack trace:
#0 /var/www/html/vendor/kyon147/laravel-shopify/src/Services/ApiHelper.php(357): Osiset\ShopifyApp\Services\ApiHelper->doRequestGraphQL()
#1 /var/www/html/vendor/kyon147/laravel-shopify/src/Actions/CreateWebhooks.php(68): Osiset\ShopifyApp\Services\ApiHelper->getWebhooks()
#2 [internal function]: Osiset\ShopifyApp\Actions\CreateWebhooks->__invoke()
#3 /var/www/html/vendor/kyon147/laravel-shopify/src/Messaging/Jobs/WebhookInstaller.php(60): call_user_func()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Osiset\ShopifyApp\Messaging\Jobs\WebhookInstaller->handle()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\Container\Util::unwrapIfClosure()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(754): Illuminate\Container\BoundMethod::call()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(125): Illuminate\Container\Container->call()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(169): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(129): Illuminate\Pipeline\Pipeline->then()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(125): Illuminate\Bus\Dispatcher->dispatchNow()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(169): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue{closure}()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(126): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(120): Illuminate\Pipeline\Pipeline->then()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(68): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(102): Illuminate\Queue\CallQueuedHandler->call()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(441): Illuminate\Queue\Jobs\Job->fire()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(391): Illuminate\Queue\Worker->process()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(334): Illuminate\Queue\Worker->runJob()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(148): Illuminate\Queue\Worker->runNextJob()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(131): Illuminate\Queue\Console\WorkCommand->runWorker()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\Container\Util::unwrapIfClosure()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(754): Illuminate\Container\BoundMethod::call()
#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#30 /var/www/html/vendor/symfony/console/Command/Command.php(279): Illuminate\Console\Command->execute()
#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\Component\Console\Command\Command->run()
#32 /var/www/html/vendor/symfony/console/Application.php(1094): Illuminate\Console\Command->run()
#33 /var/www/html/vendor/symfony/console/Application.php(342): Symfony\Component\Console\Application->doRunCommand()
#34 /var/www/html/vendor/symfony/console/Application.php(193): Symfony\Component\Console\Application->doRun()
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(197): Symfony\Component\Console\Application->run()
#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1234): Illuminate\Foundation\Console\Kernel->handle()
#37 /var/www/html/artisan(16): Illuminate\Foundation\Application->handleCommand()
#38 {main}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunconfirmedBug has not been reproduced yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions