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

Authenticate failed after previously working #6

Open
svedev0 opened this issue Jun 13, 2024 · 5 comments
Open

Authenticate failed after previously working #6

svedev0 opened this issue Jun 13, 2024 · 5 comments

Comments

@svedev0
Copy link

svedev0 commented Jun 13, 2024

The following command was working fine up until about 3 days ago:

.\appgotapo.exe -host="192.168.x.x" -u="admin" -p="tapoPassword" -do="move:10_0"

"tapoPassword" in the command above is my Tapo cloud account's password and not the local RTSP account's password.

The camera's firmware has not been updated recently and the command was not modified.

Since the issue started, the following error is displayed any time the command is run.

To clarify, this exact setup has been working perfectly until 3 days ago.

Authenticate failed. Try use another cred. login - "admin", password - your password in Tapo account.
App will be trying with "admin" with next operation(if your pass on rtsp equal pass your account). If next operation exist.
panic: runtime error: index out of range [0] with length 0

goroutine 19 [running]:
github.com/KusoKaihatsuSha/gotapo.(*Tapo).getDevice(0xc0000e6000)
        C:/Users/skald/go/pkg/mod/github.com/!kuso!kaihatsu!sha/[email protected]/gotapo.go:1677 +0x3af
github.com/KusoKaihatsuSha/gotapo.Connect({0xc0000b004e, 0xc}, {0xc00009c09b, 0x5}, {0xc0000b0063, 0x10})
        C:/Users/skald/go/pkg/mod/github.com/!kuso!kaihatsu!sha/[email protected]/gotapo.go:1371 +0x159
main.main.func1({0xc0000b004e?, 0x0?})
        c:/Users/skald/Downloads/_camtest/appgotapo/main.go:37 +0x45
created by main.main in goroutine 1
        c:/Users/skald/Downloads/_camtest/appgotapo/main.go:36 +0x2d8

System information:
Computer:
Windows 11 Pro 23H2 build 22631.3527
appgotapo v1.0.5 amd64 (unmodified release file)
Windows Terminal - Default command prompt profile

Camera:
Tapo C200 v3
Firmware 1.3.13 build 240327 Rel.63336n(4555)

@svedev0
Copy link
Author

svedev0 commented Jun 13, 2024

Edit:
My Tapo cloud account's password is not the same as my local RTSP account's password.

Connecting to- and viewing the RTSP stream using the local RTSP account credentials is still working.

@KusoKaihatsuSha
Copy link
Owner

Hello!
It's problem with TP-Link side - company added step with TP-Link Cloud token verify.
(The update apparently follows a canary principle, so it appeared to users at different times).

But GitHub Community became known the information about TP-Link plans - organize API with getting cloud token. However...plan not have any exact date of realize.

Long ticket about it in GitHub Community: JurajNyiri/HomeAssistant-Tapo-Control#551

At the moment I'm inclined to wait for something official from the TP-Link. Manipulating with the TP-Link Сloud token may lead to legal uncertainties or blocks.

One way (if possible):
Try to reset the camera to factory settings (higher than build 230921)
and block internet access to the camera.

Other way (if possible):
Downgrade the firmware, where been insecure authorize, such as 1.1.12.

nervous-inhuman/tplink-tapo-c200-re#4
https://github.com/tapo-firmware/Directory/blob/main/all_keys.txt

@svedev0
Copy link
Author

svedev0 commented Jun 19, 2024

Hi!

Thanks for taking the time to share this information. I have now read and caught up on the issue you linked and some similar ones.

I tried resetting the camera several times but this did not help. Blocking internet access to the camera did not change anything.

I then tried downgrading the firmware to 1.3.0 from this url following DrmnSamoLiu's guide. This solved the issue. However, this is not an ideal solution going forward. Hopefully, TP-Link/Tapo will fix this issue soon.

@KusoKaihatsuSha
Copy link
Owner

@svedev0
Copy link
Author

svedev0 commented Sep 26, 2024

Excellent news about the app updates. Thank you for sharing. I have stayed on firmware version 1.3.0 and so far it is still working fine for me, but new updates are always nice.

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

No branches or pull requests

2 participants