ChangeSkinX

ChangeSkinX

446k Downloads

403 for third-party API

netherstar opened this issue ยท 37 comments

commented

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

commented

Really you're blocked from Cloudflare?

Oh man, this means the alternative site mcapi.ca is also blocked.

commented

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.

commented

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?

commented

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

commented
commented

No captcha: https://mcapi.ca

commented

I'll ask the owners of us.mc-api.net if they adjust the settings.

commented

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

commented

It's a debug message to fix the random skin issue a BungeeCord user has.

commented

ok, try now

commented
commented

I've contacted them.

commented

Is Hirita a new player?

commented

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?

commented

Here is a version which accesses the mc-api.de

https://github.com/games647/ChangeSkin/releases/tag/mc-api-de

commented

in mc-api-de version:
don't has 403 error but has this error:
http://paste.ubuntu.com/17735246/

commented

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

commented

You should try the crafapi one. It''s separated into different branches

commented

@games647 try craftapi version this is error: http://paste.ubuntu.com/17782256/
and issues #22 still not fixed!

commented

Does this happen immediately or after a few times.

commented

i dont understand what your mean!?
But with my network 400 player online, every 30 second, above error appear in bungeecord.

commented

i think every time player access to network.
now i use fix-limit version.

commented

I'm going to move back to us.mc-api.net as they said they fixed it.

commented

i see plugin SkinRestorer use: mcapi.ca, and i never have issues.

commented

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.

commented

@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!

commented

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.

commented

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.

commented

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.

commented

is it mean that i can't fix anything? only wait for you fix it?

commented

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.

commented

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.

commented

And now us.mc-api.net is hitting a lot rate-limits.

commented

If you didn't noticed I'm completely switching to mcapi.ca (d8e1ce9) as primary third-party api.

commented

If that will fail, I'm using us.mc-api.net as backup solution.