dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
684 stars 162 forks source link

Discord account not starting #225

Closed kreo79 closed 2 years ago

kreo79 commented 2 years ago

Summary

i think that it is a bug of library

Reproduction Steps

The account does not start, an error will appear, although the token is entered correctly. Everything was working yesterday :)

Code

Traceback (most recent call last):
  File "D:\PyCharm Projects\discord_farm\main.py", line 479, in <module>                               
    loop.run_until_complete(start_bot())                                                               
  File "D:\Apps\Anaconda\envs\discord_farm\lib\asyncio\base_events.py", line 642, in run_until_complete
    return future.result()                                                                             
  File "D:\PyCharm Projects\discord_farm\main.py", line 459, in start_bot                              
    await client.login(client_token)  # Пытаемся залогиниться по токену
  File "D:\Apps\Anaconda\envs\discord_farm\lib\site-packages\discord\client.py", line 425, in login
    await self.http.static_login(token.strip())
  File "D:\Apps\Anaconda\envs\discord_farm\lib\site-packages\discord\http.py", line 371, in static_login
    await self.startup()
  File "D:\Apps\Anaconda\envs\discord_farm\lib\site-packages\discord\http.py", line 140, in startup
    self.client_build_number = bn = await utils._get_build_number(self.__session)
  File "D:\Apps\Anaconda\envs\discord_farm\lib\site-packages\discord\utils.py", line 754, in _get_build_number
    return int(build_file[build_index:build_index + 6])
ValueError: invalid literal for int() with base 10: 'ull!=='

Expected Results

The account should have started.

Actual Results

i think that it is a bug of library

System Information

I tried on Windows 10 and Ubuntu 20.04

Checklist

Additional Information

The account does not start, an error will appear, although the token is entered correctly. Everything was working yesterday.

Cryptotrack0xAD commented 2 years ago

Same issue for me

ckameuka5 commented 2 years ago

Same

ckameuka5 commented 2 years ago

SOLVED!!!

file \lib\site-packages\discord\utils.py line 753, in _get_build_number build_index = build_file.find('buildNumber') + 14 should be replace with build_index = build_file.find('buildNumber') + 24

Cryptotrack0xAD commented 2 years ago

SOLVED!!!

file \lib\site-packages\discord\utils.py line 753, in _get_build_number build_index = build_file.find('buildNumber') + 14 should be replace with build_index = build_file.find('buildNumber') + 24

It doesn't change anything for me...

dolfies commented 2 years ago

I'll push out an emergency fix tonight.

Rebate (2.0) uses my API to fetch the info, so such issues can be fixed without a new release.

Cryptotrack0xAD commented 2 years ago

I'll push out an emergency fix tonight.

Rebate (2.0) uses my API to fetch the info, so such issues can be fixed without a new release.

Thanks for your answer! ;-)

kreo79 commented 2 years ago

file \lib\site-packages\discord\utils.py line 753, in _get_build_number build_index = build_file.find('buildNumber') + 14 should be replace with build_index = build_file.find('buildNumber') + 24

it works for me, thanks ;)