Skip to content
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

Inertia with supervisor SSR error #585

Open
svkmedia opened this issue Feb 13, 2024 · 1 comment
Open

Inertia with supervisor SSR error #585

svkmedia opened this issue Feb 13, 2024 · 1 comment

Comments

@svkmedia
Copy link

I deployed Laravel + Inertia website to our VPS. Supervisor take care about running php artisan inertia:start-ssr.
But every 3-4 days we get this error. Any idea what cause it?
[Vue warn]: Unhandled error during execution of render function at <Anonymous >
#0 /data/web/[svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php](http://svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php)(36): Inertia\Commands\StartSsr->handle() #1 /data/web/[svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/Util.php](http://svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/Util.php)(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() #2 /data/web/[svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php](http://svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php)(93): Illuminate\Container\Util::unwrapIfClosure() #3 /data/web/[svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php](http://svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php)(37): Illuminate\Container\BoundMethod::callBoundMethod() #4 /data/web/[svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/Container.php](http://svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Container/Container.php)(662): Illuminate\Container\BoundMethod::call() #5 /data/web/[svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Console/Command.php](http://svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Console/Command.php)(211): Illuminate\Container\Container->call() #6 /data/web/[svkmedia.sk/web/vendor/symfony/console/Command/Command.php](http://svkmedia.sk/web/vendor/symfony/console/Command/Command.php)(326): Illuminate\Console\Command->execute() #7 /data/web/[svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Console/Command.php](http://svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Console/Command.php)(181): Symfony\Component\Console\Command\Command->run() #8 /data/web/[svkmedia.sk/web/vendor/symfony/console/Application.php](http://svkmedia.sk/web/vendor/symfony/console/Application.php)(1096): Illuminate\Console\Command->run() #9 /data/web/[svkmedia.sk/web/vendor/symfony/console/Application.php](http://svkmedia.sk/web/vendor/symfony/console/Application.php)(324): Symfony\Component\Console\Application->doRunCommand() #10 /data/web/[svkmedia.sk/web/vendor/symfony/console/Application.php](http://svkmedia.sk/web/vendor/symfony/console/Application.php)(175): Symfony\Component\Console\Application->doRun() #11 /data/web/[svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php](http://svkmedia.sk/web/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php)(201): Symfony\Component\Console\Application->run() #12 /data/web/[svkmedia.sk/web/artisan](http://svkmedia.sk/web/artisan)(37): Illuminate\Foundation\Console\Kernel->handle() #13 {main}

@craigrileyuk
Copy link

It's a coding error somewhere in your app most likely.

With start-ssr running, your Laravel/PHP application is managing a node process that renders the requested page on the server before sending that to the person requesting it.

Any JavaScript errors during that process will cause the SSR process to log an error unless handled.

Unfortunately, the first line is all the help you get since the PHP stack trace is mostly useless.

Try to find out what page is causing the error and then investigate from there. This isn't an issue with the inertia-laravel package itself, so I'd suggest the Discord channel for any additional help you might need triaging this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants