403 for third-party API
netherstar opened this issue ยท 37 comments
this is error:
http://paste.ubuntu.com/17658899/
when i try to access url https://us.mc-api.net/v3/uuid/Hirita so cloudflare ask me to confirm, are this cause error? my country is Vietnam
Really you're blocked from Cloudflare?
Oh man, this means the alternative site mcapi.ca is also blocked.
No, i'm not blocked from cloudflare. Cloudflare just ask me confirm on first time i access https://us.mc-api.net/v3/uuid/Hirita.
403 stands for forbidden. Maybe your server got blocked because of the unusual source of the traffic.
Do you still get this error? If not I think you have to solve the captcha from the ip of the server. Maybe tunnel your connection to that server and then access the website.
Can you access one of these without the captcha?
- https://craftapi.com/api/user/uuid/Krymonota
- https://eu.mc-api.net/
- https://mcapi.de/
- https://craftapi.com/user-api
current (now), access from my pc (not server)
No captch: https://craftapi.com/api/user/uuid/Krymonota
Captcha: https://eu.mc-api.net/
No Captcha: https://mcapi.de/
No Captcha: https://craftapi.com/user-api
And https://mcapi.ca?
No captcha: https://mcapi.ca
and, what is this?
[15:46:45] [Server thread/INFO]: [ChangeSkin] Received instant update request from BungeeCord. This request should only be send if the command /setskin was invoked
[15:46:45] [Server thread/INFO]: [ChangeSkin] Instant update for
Could you try this version: https://github.com/games647/ChangeSkin/releases/tag/user-agent
still not fixed: http://paste.ubuntu.com/17686792/
i'm not sure, my network current has 400 player online, so not sure she is new, or old.
But This error spam bungeecord console (every 30 second), are you want i send you full log of bungeecord?
Here is a version which accesses the mc-api.de
https://github.com/games647/ChangeSkin/releases/tag/mc-api-de
in mc-api-de version:
don't has 403 error but has this error:
http://paste.ubuntu.com/17735246/
Next try with craftapi
https://github.com/games647/ChangeSkin/releases/tag/craftapi
when i try version: https://github.com/games647/ChangeSkin/releases/tag/fix-limit
403 and other errors in this topic seem to be fixed, but this error is come back: #22
@games647 try craftapi version this is error: http://paste.ubuntu.com/17782256/
and issues #22 still not fixed!
i dont understand what your mean!?
But with my network 400 player online, every 30 second, above error appear in bungeecord.
The issue in mcapi.ca is that they have big rate-limiting issues which where the ChangeSkin would receive a response as the player is cracked.
@games647
Changskin 1.7.3
with popular skin like "Notch".../skin skin-name work, but many skin (not popular) won't work, like "quicksilver", "QuicksilverDC"....
i find skin name (premium name) from this website: mcskinsearch.com
when i use plugin SkinRestorer, all skin from this website work fine!
with popular skin like "Notch".../skin skin-name work, but many skin (not popular) won't work, like "quicksilver", "QuicksilverDC"....
Because the Notch name is cached. I tried mcapi.ca with another user and worked only for a few skins. Every other response return a cracked response. This is very error-prone, because you should response a clear error when the server hits a rate-limit.
what is rate limit? number of skins is allowed to download on 1 minutes? how i can fix rate limit?
or how to fix this issues?
my english very bad, sorry, i'm try to understand what your meant.
Mojang limits the number API requests we can make. There are tons of services like mcapi.ca, us.mc-api.net ... to workaround this caching the same requests for multiple requests. If the request isn't cached they will make requests the requests to Mojang. The rate-limit is IPv4 wide. mcapi.ca uses for example multiple IPv4-addresses to still make requests to Mojang, because they will possible hit the limit faster if they do that for other servers too.
The rate-limit for:
name->uuid conversions is by 600 requests per minute and each request can contain up to 100 usernames.
uuid->skin same user one minute
The problem is that plugins like ChangeSkin and SkinRestorer need the UUID and because the server is in offline mode, we have to ask the Mojang API for it.
I contacted the owner of mcapi.ca to make it possible to use both services. Example: Check mcapi.ca first and then us.mc-api.net.
The author of mcapi.ca replied that he will implement the requested changes and says that he also improved the caching mechanism. I already experienced that it worked better as before.
So I might switch to mcapi.ca nad use us.mc-api.net as backup solution.
Why? Because the owner of mcapi.ca will make changes to make it clear that if a user is cracked or just the fetch failed.
If you didn't noticed I'm completely switching to mcapi.ca (d8e1ce9) as primary third-party api.