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 returning old data #81

Open
ElotherYT opened this issue May 21, 2024 · 4 comments
Open

API returning old data #81

ElotherYT opened this issue May 21, 2024 · 4 comments

Comments

@ElotherYT
Copy link

Hey, I've been encountering some issues where the API is returning data which is very outdated for example if I go to the endpoint:

https://api.ashcon.app/mojang/v2/user/12d44d3d-47a4-496a-aa45-ea0ae677673b

It returns the username "HOGCYCLERBDOT" which was changed 47 days ago to a new username

{
  "uuid": "12d44d3d-47a4-496a-aa45-ea0ae677673b",
  "username": "HOGCYCLERBDOT",
  "username_history": [
    {
      "username": "HOGCYCLERBDOT"
    }
  ],
  ...........

Is there some ongoing issue with the caching time of Mojang profiles?

@u9g
Copy link

u9g commented Jul 1, 2024

Any solutions to this issue?

@MisterFixx
Copy link

From some independent research, it appears that the Mojang API is blocking all requests coming from CloudFlare IPs, requests coming from CloudFlare workers always return a 403 status code, while the same request from any other IP goes through just fine.

@kimoVoid
Copy link

kimoVoid commented Jul 7, 2024

Any chance this could get fixed? Is there even any alternative APIs we can use meanwhile?

@zanethefox
Copy link

From some independent research, it appears that the Mojang API is blocking all requests coming from CloudFlare IPs, requests coming from CloudFlare workers always return a 403 status code, while the same request from any other IP goes through just fine.

@Electroid this might help figure out what the issue is.

Does anyone know if there is any way to change the IP the request is coming from?

Is it possible to host the API on a different server/locally potentially?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants