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.
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.
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.