FilamentF
Filament9mo ago
pjb

Chart Widgets behind load balancer throw RootTagMissingFromViewException

I have a few standard bar chart widgets on the default dashboard. They all load successfully in a single-server environment. When I put my application behind a load balancer (multiple server instances, no sticky sessions), multiple livewire/update requests fail with:

Livewire\Exceptions\RootTagMissingFromViewException

Livewire encountered a missing root tag when trying to render a component. When rendering a Blade view, make sure it contains a root HTML tag.


If I turn on sticky sessions in my load balancer or reduce the number of server instances to 1, the problem goes away. I also do not receive the error in my single container development environment.

I've tested deploying with/without php artisan optimize and/or php artisan filament:optimize

It seems like any request that goes through the load balancer and is handled by an instance other than the one that handled the initial page load is failing.

Appreciate any ideas/assistance!
Was this page helpful?