Giter Site home page Giter Site logo

mojang's People

Contributors

summer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mojang's Issues

"mojang.errors.NotFound: HTTP 404. This resource does not exist." On login with bearer token

When trying to login with a bearer token, It throws a 404 not found error.
This is my code, i am trying to use 2 accounts:

        try:
            client1 = Client("EMAIL", "PASS")
        except errors.LoginFailure:
            QtWidgets.QMessageBox.about(self, "Error", "Invalid main account")
            return

        try:
            client2 = Client(bearer_token = "TOKEN")
        
        except errors.LoginFailure:
            QtWidgets.QMessageBox.about(self, "Error", "Invalid second account")
            return

It should be a valid token. Its 435 characters long and contains a dot.

"get_drop_timestamp" always returns ValueError

The get_drop_timestamp() function always returns a ValueError, as it attempts to convert the username to a UUID, however since drop timestamps only work on names that aren't currently set to any profile, this makes it impossible to work.

Example:

drop_timestamp = MojangAPI.get_drop_timestamp(mazurr)
print(drop_timestamp)

Returns:

ValueError: Username is invalid. Failed to convert username to UUID

Getting Bearer Token

Is there a way to input login: (Email, Password)
and getting it to print the bearer token?

Hello, can you consult git space

你好,可以咨询下git空间吗,summer可以出让给我吗?微信或者QQ联系

Hello, can you inquire about git space? Can Summer sell it to me? WeChat or QQ contact

problem with `get_name_history`

  name_data_dict["name"] = data["name"]
TypeError: string indices must be integers

getting this error anytime i call the MojangAPI.get_name_history(uuid)

json.decoder.JSONDecodeError when querying a uuid that isnt a player

When you query a profile:

profile = MojangAPI.get_profile("20e21989-5521-49df-9750-a4ef8bd5441b")

, expected output is None if the profile doesn't exist or UserProfile if it does, however, if you put a valid UUID, but one that isn't a player, the method throws json.decoder.JSONDecodeError

profile = MojangAPI.get_profile("20e21989-5521-49df-9750-a4ef8bd5441a") # This will error out!

Grrr

It's me dancers, you should add my new account. (I got terminated 😢)

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.