This repository was archived by the owner on Dec 30, 2025. It is now read-only.
TP-Link HX510 - Unable to fetchSessionID #8
Unanswered
kiwiscanwifi
asked this question in
Q&A
Replies: 1 comment
-
|
Not sure what you are asking here but here's some info for you:
The formatting of your code snippets is broken use ``` at the start and end of the code snippets to format it correctly. Regarding making the device publicly available: I would suggest against doing this. There are better ways like setting a dummy password on the device, doing a packet capture and sharing a filtered version pcap. Also have a look at #5 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, trying this out to see if I make it work on the TP-Link HX510... I appear to get undefined return from the fetchSessionId.
I have followed the coding to where it fails as written below.. I am happy to make a TP-Link 510 IP publicly accessible for trying.
| console.log(encryption);
| console.log(sequence);
| console.log(username);
| console.log(password);
|
| const sessionId = await fetchSessionId(baseUrl, {
| encryption,
| sequence,
| username,
| password,
| });
|
| console.log(sessionId);
SessionID is undefined
| if (!sessionId) {
| console.log("No Session ID");
| return null;
| }
This in return fails at:
| const { info, ...context } = await authenticate(ADDRESS, {
| username: USERNAME,
| password: PASSWORD,
| });
ERROR:
const { info, ...context } = await authenticate(ADDRESS, {
^
TypeError: Cannot destructure property 'info' of '(intermediate value)' as it is null.
Beta Was this translation helpful? Give feedback.
All reactions