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

bobwurtz's avatar

Vapor Repeating Requests

Has anyone ever encountered Vapor repeating a request dozens or even hundreds of times? I have a mobile checkout app that runs Laravel/Livewire/Vapor and occasionally a request will be repeated and add the same item to the user's cart hundreds of times. Has anyone ever dealt with this problem? Does this sound more like a Laravel or Livewire problem? Any insight or guidance would be greatly appreciated. Thank you.

0 likes
4 replies
bugsysha's avatar

Never. But the ones that I've read about were always developer errors.

bobwurtz's avatar

That's always my first thought too - and I am looking for that. What's so strange is that this is only happening on less than 1% of all 'Add to Cart' requests. And always with different items and different users on different devices. I cannot recreate the behavior. Very frustrating.

bugsysha's avatar

I know I recommend this a lot, but I would try two different options:

  1. Contact Vapor support to see if they could give any advice
  2. While waiting for help, I would create a simple app with the most basic functionality that replicates the flow to see if it will happen there.
bobwurtz's avatar

I was finally able to observe the issue in production just by playing around with the site and clicking around until I triggered the behavior. It's definitely not a Vapor issue. It's still probably a development issue on my end, but it's definitely Livewire related. I use Livewire to manage state on the menu page. When this loop occurs, Livewire sends requests on a continuous loop until the page is refreshed. All of the requests return a 200 status code, but I have no idea what is triggering the requests to repeat on a loop.

Please or to participate in this conversation.