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

AuthMe "Failed to log in: null" error #57

Open
3 tasks done
HenrikoMagnifico opened this issue Aug 6, 2022 · 20 comments · Fixed by #85
Open
3 tasks done

AuthMe "Failed to log in: null" error #57

HenrikoMagnifico opened this issue Aug 6, 2022 · 20 comments · Fixed by #85
Labels
investigation Further investigation is needed

Comments

@HenrikoMagnifico
Copy link

Expected behavior

To be able to play normally after logging in

Observed/actual behavior

Error message when trying to connect to servers, and after re-logging in with AuthMe.

Steps/models to reproduce

Log in using AuthMe on the server list menu, get the error when trying to connect.

Version

1.18.2

Agreements

  • I am running the latest version of the mod.
  • My version of Minecraft is supported.
  • I have searched for and ensured there isn't already an open issue regarding this.

Other

Error log: https://hastebin.com/tikayologi.yaml

@dadoirie
Copy link

dadoirie commented Aug 26, 2022

recently getting the same here ... did not change nothing on microsoft minecraft account settings (even tho checked if that might be the cause)
offline player has no issues, just when want to join server as online player this happens
image

EDIT: fabric 1.18.2 & worked before ... server and client doesn't really say much regarding this except:
server: com.mojang.authlib.GameProfile@c5d878e[id=<null>,name=DadoFlame,properties={},legacy=false] (/[IP]:[PORT]) lost connection: Disconnected (IP & PORT deleted for safety)
client: https://mclo.gs/nHAbM6G#L2393 (link jumps straight to the line when it happens ... but might something stand out in the client logs)

without authme no troubles

@axieum
Copy link
Owner

axieum commented Oct 8, 2022

I can't seem to reproduce this with my Microsoft account on Minecraft 1.18.2 😕

@axieum axieum added the investigation Further investigation is needed label Oct 8, 2022
@aking4125
Copy link

aking4125 commented Oct 29, 2022

Hello,

We're getting a similar problem here but on Fabric 1.19.2.

2022-10-28-7.log

This mod actually prevents any connections to the server. Removing it allows the user to log in normally so it's actually hindering access now.

@Monster-Zer0
Copy link

same issue 1.18.2 fabric

@Julienraptor01
Copy link
Contributor

Hello,

We're getting a similar problem here but on Fabric 1.19.2.

2022-10-28-7.log

This mod actually prevents any connections to the server. Removing it allows the user to log in normally so it's actually hindering access now.

yep i get the problem too
usually i just wait 2 sec before going in a server and it's fine

@DoctorDinosaur
Copy link

Same issue, had to uninstall for now

@InFuRiTy
Copy link

InFuRiTy commented Jun 2, 2023

Same issue here using it for 1.19.2 in a Fabric pack.
If i persist after like 11-12 tries it lets me join in, but it is annoying nonetheless!

@axieum
Copy link
Owner

axieum commented Jun 6, 2023

Hi, can you please try changing the following settings and see if the issue persists?

methods:
  microsoft:
    authorizeUrl = "https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize"
    tokenUrl = "https://login.microsoftonline.com/consumers/oauth2/v2.0/token"

I'm thinking that perhaps the Microsoft OAuth2 endpoints need updating to these ones.

@Julienraptor01
Copy link
Contributor

Hi, can you please try changing the following settings and see if the issue persists?

methods:
  microsoft:
    authorizeUrl = "https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize"
    tokenUrl = "https://login.microsoftonline.com/consumers/oauth2/v2.0/token"

I'm thinking that perhaps the Microsoft OAuth2 endpoints need updating to these ones.

seems to work way better for me, i'll play a few days with that settings to see if i ever encounter the problem again

@axieum
Copy link
Owner

axieum commented Jun 8, 2023

Let's re-open this issue if the proposed fix does not work.

@catsoften
Copy link

I am still getting this issue.

@Julienraptor01
Copy link
Contributor

I am still getting this issue.

If you had the mod prior to the change you still have the old urls in the config, go reset them

@catsoften
Copy link

catsoften commented Jul 17, 2023

If you had the mod prior to the change you still have the old urls in the config, go reset them

Already have.

I just noticed that waiting five seconds after opening the server list or disconnecting before trying to connect never causes the issue. Also while testing this my session randomly became invalid despite logging in a few minutes ago. This makes me think the problem is actually a rate limit by moj/icrosoft and AuthMe checking the session when the login button is added could be triggering it.

@dadoirie
Copy link

I'm myself also not sure if the mods count depend on it too - as catsoften explained it well, it really seems more of a rate limit as it does mostly happen if clicking join server straight after entering the server list instead of waiting a few seconds

@Julienraptor01
Copy link
Contributor

If you had the mod prior to the change you still have the old urls in the config, go reset them

Already have.

I just noticed that waiting five seconds after opening the server list or disconnecting before trying to connect never causes the issue. Also while testing this my session randomly became invalid despite logging in a few minutes ago. This makes me think the problem is actually a rate limit by moj/icrosoft and AuthMe checking the session when the login button is added could be triggering it.

Weird since the update i don't have any issues
But yeah maybe the session checking but that would be extremly weird, your session isn't supposed to be invalid one minute after logging in
I have never encountered a rate limit tho even after spamming the actualize button so i don't really think it could be that actually

@axieum axieum pinned this issue Jul 18, 2023
@DMCK96
Copy link

DMCK96 commented Oct 21, 2023

Occurring again on Fabric 1.20.1 loader 0.14.22 and 0.14.23

Mod version: 7.0.2+1.20

@JadssDev
Copy link

Can confirm it's happening on Fabric 1.20.1.
Loader version: 0.14.23
Mod version: 7.0.2+1.20

@axieum axieum reopened this Oct 23, 2023
@JadssDev
Copy link

JadssDev commented Dec 2, 2023

any updates

@axieum
Copy link
Owner

axieum commented Dec 2, 2023

I did try leave my game open for over 24 hours, and then switching account. I cannot for the life of me reproduce it.

I'm afraid that it's going to have to be up to someone who has the issue on their account to be able to debug it.

@JadssDev
Copy link

JadssDev commented Dec 7, 2023

I could try, do you have discord? add me @jadsss

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

Successfully merging a pull request may close this issue.