Giter Site home page Giter Site logo

API error about discord.py-self HOT 4 CLOSED

OriBM avatar OriBM commented on August 19, 2024
API error

from discord.py-self.

Comments (4)

Soggy-Pancake avatar Soggy-Pancake commented on August 19, 2024 5

I was able to fix the problem in the v2.0 release by editing the build URL and build index to match the updated files from discord.

utils.py
line 1474 build_url = 'https://discord.com/assets/' + re.compile(r'assets/+([a-z0-9]+\.[a-z0-9]+)\.js').findall(login_page)[-2] + '.js'

line 1477 build_index = build_file.find('buildNumber') + 26

It returned the correct build number (284187 currently) and then I could log in.

from discord.py-self.

syntaxsurge avatar syntaxsurge commented on August 19, 2024 2

The version available on PyPI (Python Package Index) is outdated. You can install the latest version directly from GitHub using this command:

pip install git+https://github.com/dolfies/discord.py-self.git

from discord.py-self.

omnituensaeternum avatar omnituensaeternum commented on August 19, 2024

I was able to fix the problem in the v2.0 release by editing the build URL and build index to match the updated files from discord.

utils.py line 1474 build_url = 'https://discord.com/assets/' + re.compile(r'assets/+([a-z0-9]+\.[a-z0-9]+)\.js').findall(login_page)[-2] + '.js'

line 1477 build_index = build_file.find('buildNumber') + 26

It returned the correct build number (284187 currently) and then I could log in.

I too am having a similar issue however this fix did not work for me assuming the build number has changed since, hopefully a more permanent solution is established soon.

from discord.py-self.

dolfies avatar dolfies commented on August 19, 2024

Fixed the fallback! The API is back up too. Sorry for the wait guys.

from discord.py-self.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.