mojira.dev
WEB-1262

Public API '403 Forbidden'

Hello, since this morning, OVH dedicated servers in Montreal, Canada can't connect to the Mojang public API, getting the error '403 Forbidden'

Linked issues

Comments 5

Can confirm on some servers I have hosted in OVH's BHS DC.

Expected to see a header like the following (response to a Kimsufi (OVH brand) dedi with IP 192.99.36.xxx):

$ curl -I https://api.mojang.com/users/profiles/minecraft/thgilfodrol
HTTP/1.1 200 OK
Content-Type: application/json
Connection: keep-alive
Accept-Ranges: bytes
Cache-Control: no-cache, no-store, must-revalidate
Date: Sun, 07 Apr 2019 04:31:15 GMT
Server: Restlet-Framework/2.3.12
Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
X-Cache: Miss from cloudfront
Via: 1.1 8ca5654687f8cbcb7e36a76a546eebed.cloudfront.net (CloudFront)
X-Amz-Cf-Id: cGy-o0nOEaGI1BgMPBQGEeAW9CIutl6N698GPL5V7eQfGRcyxuZhOQ==

Instead, found the following (response to a OVH VPS with IP 158.69.196.xxx):

$ curl -I https://api.mojang.com/users/profiles/minecraft/thgilfodrol
HTTP/1.1 403 Forbidden
Server: CloudFront
Date: Sun, 07 Apr 2019 04:31:27 GMT
Content-Type: text/html
Content-Length: 560
Connection: keep-alive
X-Cache: Error from cloudfront
Via: 1.1 b36fe90cbb797d67a603f1a0d6e4ef18.cloudfront.net (CloudFront)
X-Amz-Cf-Id: WHLobccHtn18Gac6_WJG5Ip6E0Bub8476ix31oZiDJd0ZY7853Z-EA==

Both of the above servers are in OVH's BHS (Montreal) DC.

This seems to have been happening to some servers in the /r/admincraft community too, and a similar issue occurred before as well.

Edit: this means that affected servers are unable to operate minecraft server properly (e.g. whitelisting offline players will fail, UUIDs won't resolve, etc). There are probably some reports on the MC (Java) project for this as a result.

 

--2019-04-07 22:10:06--  https://api.mojang.com/users/profiles/minecraft/_JuPo_
Resolviendo api.mojang.com (api.mojang.com)... 52.84.95.62
Conectando con api.mojang.com (api.mojang.com)[52.84.95.62]:443... conectado.
Petición HTTP enviada, esperando respuesta... 403 Forbidden
2019-04-07 22:10:06 ERROR 403: Forbidden.

158.69.120.XX

158.69.122.X
158.69.23.XXX
149.56.28.XX
149.56.107.XXX

Same problem.

I tested some others, and 158.69.60.xxx and 158.69.200.xxx are also affected. This means that of all my servers at BHS, only a Kimsufi dedi is fine- all the OVH VPSes are blocked.

I too am having issues with this on OVH's SoYouStart servers. 158.69.121.XXX.

This should be fixed.

Luis Castellano

(Unassigned)

Retrieved