Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mohsenbostan's avatar

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:

image

  • Laravel version : ^8.40
  • Livewire version : ^2.5
  • PHP version : 8.0.9-fpm
  • web server : Nginx
0 likes
0 replies

Please or to participate in this conversation.