Duodecim Posted October 20, 2022 Report Posted October 20, 2022 Hello, I'm using TradeOfferManager and SteamUser libraries, following the docs on https://github.com/DoctorMcKay/node-steam-user#patterns- https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki so far I was able to continue my project and learning more about programming in the process, in a few features of the project I use getUserInventoryContents and works fine, There is one feature that require more than one call of this method getUserInventoryContents, this feature works, but in cases crashes when the user runs this a few times. I don't know if this may be related but i get the GET /ab2h, ab2g after the crash, my question my node server requires robots.txt to avoid this ? or add more delay on each getUserInventoryContents call ? Thanks ! Quote
Dr. McKay Posted October 20, 2022 Report Posted October 20, 2022 It shouldn't crash. What error message does it crash with? Quote
Duodecim Posted October 21, 2022 Author Report Posted October 21, 2022 I capture yesterday session, checking the logs I only recover this the two unexpected request and here, checking the screenshot again, I saw that null and here is the error, looks like I send a null from the array, fetching the second page of Trade links With regard of the robot.txt for the server, will improve some validation on my server ? Quote
Dr. McKay Posted October 21, 2022 Report Posted October 21, 2022 I have no idea what I'm looking at. Quote
Duodecim Posted October 21, 2022 Author Report Posted October 21, 2022 Ask to Zelenka he maybe, he will know joke xD, I don't have the error that came from the response of the getUserInventoryContents, but so far, I'm calling it inside an iteration, with delay to avoid steam overloaded If there is any recommendation doing this way, I will continue and add some security libraries to the node server. Thanks anyway Quote
Dr. McKay Posted October 23, 2022 Report Posted October 23, 2022 You definitely would want to avoid calling getUserInventoryContents too frequently to avoid Steam rate limiting you, but it shouldn't crash in any case. Quote
Duodecim Posted October 23, 2022 Author Report Posted October 23, 2022 Good, i will take in care the rpm. Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.