Nov 26, 2021
0
Level 1
Livewire stops working after five minutes on production
Hi. On my local system, Livewire runs without any issues. However, on the production server, when I start the Docker container, it works fine for about 5 minutes, but after that, Livewire components stop working. When I click on a button to edit a Model data or select an option from the select box, it won't work, and I get the following error in my console:
Uncaught (in promise) SyntaxError: Unexpected token { in JSON at position 581
at JSON.parse (<anonymous>)
at index.js:58
Here is the response from the Livewire request, which appears to have been damaged:

- Laravel version : ^8.40
- Livewire version : ^2.5
- PHP version : 8.0.9-fpm
- web server : Nginx
Please or to participate in this conversation.