GladiatusCrazyAddon icon indicating copy to clipboard operation
GladiatusCrazyAddon copied to clipboard

Market: Cancel all button rework

Open FrutyX opened this issue 3 years ago • 3 comments

When cancelling too many items (10 - 15+), it creates too many server requests in a short time and this returns an 503 server error.

market

Without scrapping the feature, a possible solution would be to alter the script, to send those requests with a time delay between each request.

FrutyX avatar Sep 29 '22 14:09 FrutyX

We may need to do something about this, a notification or retry the requests.

GreatApo avatar Oct 23 '22 11:10 GreatApo

Apo, since you been around now, what would you do about this? It's one of those issues, that would be nice to deal with, if we ever release another update.

I have tried it just today, and once you cancel too many items, it just throws 503 at you, first at the console, but you can even get a 503 blank page.

We either need to slow it down, retry or limit the number that can be canceled. But I don't want you to waste too much time on this, it needs a simple change, without reworking the whole code.

FrutyX avatar Jun 06 '24 18:06 FrutyX

I slightly modified @FrutyX 's code and just added a delay between requests. It seems to work fine (tested with 16 items).

GreatApo avatar Jun 08 '24 14:06 GreatApo

  • fixed cancel wrong item id
  • fixed no wait time between requests
  • added more wait time based on server response time to avoid spamming the server on high load/traffic periods

GramThanos avatar Sep 14 '24 12:09 GramThanos