navarr / MinecraftAPI

An API for validating a user against Mojang's servers written in PHP
0 stars 0 forks source link

First time logging in fails. #3

Open MatthewSH opened 7 years ago

MatthewSH commented 7 years ago

Consistently when people try to log in, the first time they try it comes back with failed credentials. Not sure if anyone else if having this issue.

navarr commented 7 years ago

You're getting a BadLoginException specifically, every first try?

MatthewSH commented 7 years ago

yeah, in less you've logged in previously in that...probably 4-10 hours? It's very strange.

I'm using Laravel 5.3. Here is the line it's used on. I'm handling everything correctly; but it's still strange. The only thing I can think of is that it doesn't respond "in time" so it just throws it to the first catch? I'm not even sure.

However, could it be that Mojang is blocking requests? The error code ForbiddenOperationException is not very descriptive. It's associated with bad login credentials, however...could it be something more @navarr?