Closed uniqueuser-repo closed 11 months ago
same, started getting it today, without any code changes. Tested on linux and windows. Python 3.10.6 discord.py-self 2.1.0a4814+g4076a3b1 Windows 11
+1, same error
Not getting the error now. No code changes.
+1 no code changes, can't login from today ubuntu 22.04 python3.11
Fixed by #618.
Same issue
"""Fetches client build number"""
try:
login_page_request = await session.get('https://discord.com/login', timeout=7)
login_page = await login_page_request.text()
build_url = 'https://discord.com/assets/' + re.compile(r'assets/+([a-z0-9]+)\.js').findall(login_page)[-2] + '.js'
build_request = await session.get(build_url, timeout=7)
build_file = await build_request.text()
# Check for 'buildNumber' format
build_index = build_file.find('buildNumber') + 24
build_number_str = build_file[build_index : build_index + 6]
if build_number_str.isnumeric():
return int(build_number_str)
else:
# Check for 'Build Number' format
build_index = build_file.find('Build Number') + 25
build_number_str = build_file[build_index : build_index + 6]
if build_number_str.isnumeric():
return int(build_number_str)
else:
# Handle the case where neither format contains a valid integer
_log.warning('Client build number is not a valid integer.')
return 9999 # Return a default value```
i like how bro was making a nitro sniper
Aún no resuelven el error?
Duplicate of #619
Summary
When running the bot, I receive list index out of range error. I did not receive this error before today. I was running it fine yesterday (and days before) with no code changes.
Reproduction Steps
Code
Expected Results
The bot starts
Actual Results
The bot fails with list index out of range error
System Information
Checklist
Additional Information
No response