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

[archer-mr600] Unable to authenticate (returns null) #5

Closed
henrik242 opened this issue Dec 20, 2023 · 5 comments
Closed

[archer-mr600] Unable to authenticate (returns null) #5

henrik242 opened this issue Dec 20, 2023 · 5 comments
Labels
question Further information is requested

Comments

@henrik242
Copy link

henrik242 commented Dec 20, 2023

I see you state "TL-MR6000" in the readme, but I hope you mean the TPlink Archer MR600?

I have one of those, but I'm getting null from authenticate(). Any ideas why?

@henrik242
Copy link
Author

I see that both data and sign are set to seemingly sane values in fetchSessionId.js, but the fetch response is null.

@hertzg
Copy link
Owner

hertzg commented Dec 21, 2023

There are two cases when it can return null

when fetchBusy() returns isLoggedIn as false

const { isLoggedIn } = await fetchBusy(baseUrl);
if (isLoggedIn && !forceLogin) {
return null;
}

or if it was not abe to obtain sessionId (probably wrong password or smth?)

const sessionId = await fetchSessionId(baseUrl, {
encryption,
sequence,
username,
password,
});
if (!sessionId) {
return null;
}

since forceLogin is true by default, and assuming you didn't pass it as false most likely it's not able to obtain sessionId.

Without seeing request / response for each fetch or a packet capture it's hard to say whats happening in your case.

@hertzg
Copy link
Owner

hertzg commented Dec 21, 2023

I see you state "TL-MR6000" in the readme, but I hope you mean the TPlink Archer MR600?

The naming from tplink is weird, the one I have tested it on is TL-ML6400 the one you mention, the Archer MR6000 seems to be different.

I don't have the Archer device, I have a feeling there might be a new firmware and the request or response forcgi/login is different. Happy to review the PR to merge it if you manage to get it working.

If you set a dummy username & password and provide a packet capture for the fully authentication flow, might be useful as well.

I've fixed the wrong model number and also mentioned that there's an issue with Archer MR600 in the readme now linking to this issue.

@hertzg hertzg changed the title Unable to authenticate [archer-mr600] Unable to authenticate (returns null) Dec 21, 2023
@hertzg
Copy link
Owner

hertzg commented Dec 25, 2023

Did you manage to either do a packet capture or know why it's not working? @henrik242

@hertzg hertzg added the question Further information is requested label Dec 28, 2023
@hertzg
Copy link
Owner

hertzg commented Jan 8, 2024

Closing this due to inactivity

@hertzg hertzg closed this as completed Jan 8, 2024
@hertzg hertzg closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants