Skip to content
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

api_reqs: get_place_info() throws an exception with IndexError: list index out of range #13

Open
SoundBoomer opened this issue Dec 4, 2024 · 3 comments
Labels
bug Something isn't working as expected. further info required Issue: Further information is needed for debugging purposes.

Comments

@SoundBoomer
Copy link

Using this tool for welcome grinding, and after around 500 places the script crashes. Using Windows 10, Bloxstrap and compiled .exe version of alcubierre
cmd_eh50rX8Yms

@exurd
Copy link
Owner

exurd commented Dec 8, 2024

I know why it crashed because the place information was in a different format than the code expected.

return place_json[0]

However, I don't know the API's response that caused it to crash. Verbose printing would show that.

If you can, please replicate this bug with the --very-verbose option (-vv) and upload the screenshot here.

@exurd exurd changed the title Unhandled exception crashes api_reqs: get_place_info() throws an exception with IndexError: list index out of range Dec 8, 2024
@exurd exurd added bug Something isn't working as expected. further info required Issue: Further information is needed for debugging purposes. labels Dec 8, 2024
@SoundBoomer
Copy link
Author

Line 3326: www.roblox.com/badges/2124535731
Detecting type from string...
Checking patterns for type: PLACE
Pattern: re.compile('roblox\.com/games/(\d+)', re.IGNORECASE)
Pattern: re.compile('place\?id=(\d+)', re.IGNORECASE)
Pattern: re.compile('roblox\.com/Place\.aspx\?ID=(\d+)', re.IGNORECASE)
Pattern: re.compile('roblox\.com/PlaceItem\.aspx\?id=(\d+)', re.IGNORECASE)
Checking patterns for type: BADGE
Pattern: re.compile('roblox\.com/badges/(\d+)', re.IGNORECASE)
RbxInstance [id: 2124535731, type: BADGE]
line_rbxinstance: RbxInstance [id: 2124535731, type: BADGE]
Getting info for 2124535731 with type BADGE
Badge Name: You Played!
Traceback (most recent call last):
File "main.py", line 266, in
File "main.py", line 251, in main
File "modules\script_loop.py", line 354, in start
File "modules\script_loop.py", line 286, in handle_line
File "modules\script_loop.py", line 165, in deal_with_rbxinstance
File "modules\script_loop.py", line 64, in deal_with_badge
File "modules\api_reqs.py", line 177, in get_place_info
IndexError: list index out of range
[PYI-2436:ERROR] Failed to execute script 'main' due to unhandled exception!

@exurd
Copy link
Owner

exurd commented Dec 24, 2024

It seems that the log you're giving me is partial. No request logs are visible, yet the pattern detection logs print out?

Can you please try replicating this on the master branch? I added a feature a while back that creates a log file for each action the program takes, regardless of what kind of verbose arguments are set. Upload a compressed log here once it crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected. further info required Issue: Further information is needed for debugging purposes.
Projects
None yet
Development

No branches or pull requests

2 participants