-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DuplicateRequest Exception from ArchiHandler.GetMyInventoryAsync #3174
Comments
You have 6 exceptions, but only 4 bots. Didn't you send |
Ah okay, now I see, there are 6, so each bot threw that exception. The question stands however, are you sure there weren't two consecutive fetch requests? If not, how many items in inventory those accounts have, more than 5k? |
I've only been able to reproduce this error when I make 2 or more fetches in quick succession. The less time between fetches, the more likely there will be an error. The number of items in each of these inventories is: 448, 79, 34, 34, 35, and 663. The chat that produced the log above is:
|
Okay, that explains everything, could you check how much time you need before it starts working again? Roughly, in seconds, before you get at least one success, since the moment it stops working. |
It never stops working completely, it's just that individual fetches may fail. If one fails, the next one usually succeeds. For example, if I make one request every second I might see a string of: Success, Success, Fail, Success, Fail, Success, Success. I haven't seen any fails when I test 1 fetch every 5 seconds either from my 79 item bot or my 663 item bot. |
Great, that's very valuable info, thanks a lot, I should be able to make the method more robust now. Will do that and then release new version for you to test 👍 |
I've marked V6.0.1.18 for release with this fix. If you'll get any further issues with the new method let me know. It seems we need similar level of bulletproofing as old AWH method, that simply already has it implemented by me before (sigh). |
Checklist
ASF version
Latest pre-release
ASF variant
generic (with latest .NET runtime)
Bug description
ArchiHandler.GetMyInventoryAsync
sometimes throws an exceptionExpected behavior
No errors or error handling
Actual behavior
System.Net.Http.HttpRequestException: Failed due to error: DuplicateRequest
Steps to reproduce
unpack asf
unpack asf
againJust using
unpack asf
as an easy way to callArchiHandler.GetMyInventoryAsync
here. My inventories have no booster packs in them. This can also be reproduced by sending the command to a single bot instead of all bots, ex:unpack BotA
Possible reason/solution
No response
Can you help us with this bug report?
No, I don't have time, skills or willings for any of that
Full log.txt recorded during reproducing the problem
Global ASF.json config file
No response
BotName.json config of all affected bot instances
No response
Additional info
In regards to what I described here: Citrinate/BoosterManager@d68141d#commitcomment-140273865
I wasn't running commands then as quickly as I'm doing here to get this error. Though in my testing here, I was able to get an error on one occasion after sending only 2
unpack asf
commands since logging on; so it's possible that maybe I was for a brief period.I'll continue testing to see if I get any more errors.
The text was updated successfully, but these errors were encountered: