Anyone ever tried Filament with Bref? (serverless) Livewire corrupted error
I keep getting
Livewire encountered corrupt data when trying to hydrate the [app.filament.resources.user-resource.pages.list-users] component. Ensure that the [name, id, data] of the Livewire component wasn't tampered with between requests
Almost all actions give me this error
eg: changing the number of itens per page
Anyone ever had a problem like this? SESSION_DRIVER = cookies
, CACHE_DRIVER = dynamodb
Even the CSRF token was giving me errors (disabled it for livewire/filament/admin to test and it worked)
Considering this may not fit in here but in Bref itself, I will deleted it in case nobody reply (no one had this problem)5 Replies
I haven't used severless, but that error is usually, when something isn't properly configured 🤔?
I had that with standard yesterday, turned out to be the field being rendered was not longer in the dataset. Example, list was configured to hide certain values from a relationship, but the form didn't match so allowed selecting them.
I know that Filament runs well on Laravel Vapor
i know its not bref but, we still conform to serverless principles
in fact, this project is using it https://twitter.com/luisdalmolin/status/1618188442130870273
Luis Dalmolin (@luisdalmolin)
Laravel Vapor is receiving part of the traffic, and the migration is halfway done. Seems like a pretty good deal if you ask me.
![From Luis Dalmolin (@luisdalmolin)](https://images-ext-1.discordapp.net/external/HpezX4RmW5MCjLWIvI0_HrkS84osRuIxw3AIhN4fE2w/https/pbs.twimg.com/media/FnT1om3agAAzd4A.jpg)
Twitter
Thanks for all the replies!
The problem was indeed inside the
serverless
structure. With the older version of serverless-lift
plugin (not that old yet) it was only possible to send 10 forwardedHeaders
and probably some header was missing. With the latest version it can pass any header, making it work.
TLDR: upgrade serverless-lift
and remove forwardedHeaders
from serverless.yml
to make it work
Considering the problem was not in here, I don't know if I should keep it for reference or just delete the question