F
Filament•2y ago
Picolé

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
ZedoX
ZedoX•2y ago
I haven't used severless, but that error is usually, when something isn't properly configured 🤔?
toeknee
toeknee•2y ago
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.
Dan Harrin
Dan Harrin•2y ago
I know that Filament runs well on Laravel Vapor i know its not bref but, we still conform to serverless principles
Dan Harrin
Dan Harrin•2y ago
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)
Twitter
Picolé
PicoléOP•2y ago
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

Did you find this page helpful?