-
Notifications
You must be signed in to change notification settings - Fork 572
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
TP-Link Tapo C120 401 Unauthorized using Tapo Protocol #849
Comments
Are you sure you using latest go2rtc version? |
Yes, I'm on version 1.8.4 |
For what it's worth I just restarted Frigate and therefore go2rtc and now both cameras are now showing the 401 Unauthorized error |
Have you upgrade firmware before this problem? |
I have not. |
Well. I have same issue with my TC60 camera. You need to open stream from mobile app once and all will be fixed. |
I am suffering same issue with C210. After trying clear test, md5 and sha256 combinations. Thanks in advance. |
Do you mean just opening it from the Tapo app? If so, I've done this and the issue still persists |
I just purchased C520WS. I have the 401 unauthorized error, when using tapo protocol. |
You need to open stream from the tapo mobile app once. |
Thanks very much for your quick response.
Yes. I saw your earlier comments, and did open the tapo app. But still got
the same error.
I tried to login to the camera via its IP address. But I saw no content.
However, it provided some connection info, including SHA-256 fingerprint.
But it is different from that I created using the app password (I didn't
sign up for cloud service), which I think is the cloud password, using the
echo command you provided in your document.
Regards.
Benjamin Chen
…On Thu, Feb 29, 2024, 10:05 AM Alex X ***@***.***> wrote:
You need to open stream from the tapo mobile app once.
—
Reply to this email directly, view it on GitHub
<#849 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUEOBEL4YERUVQZHG72GHZ3YV5PWFAVCNFSM6AAAAABBF6M4KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRGU4DANRZG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Same issues, none of my tapo cameras work with tapo protocol. They work with RSTP though. |
I wonder if the cause why this isn't working could be the same as to why the HASS integration for Tapo is also experiencing issues. It appears TP-Link are rolling out a security fix in waves which most likely broke the way go2rtc was making the connection to the cameras. The only workaround seems to be a factory reset followed by blocking internet access for the cameras which is unacceptable for me as I am using the cloud storage subscription. |
@AlexxIT reach out to me in discord if you want and are affected as well, i can provide more details about what is going on and might be able to help find the solution for both of us. I am not affected yet unfortunately. |
Same issue here. My C320WS, C200, C100 and C220 all started to show the same 401 unauthorized error, after restarting my frigate & go2rtc instance today. I reverted to rtsp streams for now, but that sucks. Note, there was no prompt for a firmware update on these cameras in the tapo app. It has to be something OTA though. If there are any logs i can provide you to help you track this, will be glad to help. |
My Tapo integration in HASS was working fine even with latest firmware until I changed my tapo password which broke all my cameras. I only changed it because I was setting up the tapo integration in go2rtc. Is go2rtc working for you? |
Same issue for tapo protocol. edit: Tried few more options and it only breaks when SHA or MD5 password is used. |
Reseting the camera, re-adding it to tapo app and immediately blocking internet access for it, seems to do the trick for now on the latest firmware (1.3.13) for C200. It has to be something server side that gets provisioned as soon as the camera calls home. |
@JurajNyiri thanks, maybe later |
401 unautorized here too though I can't get rtsp streams to work. Do you still have them running? |
Yes, RTSP streams are running fine for all my tapo cameras. It sucks though that i'm missing out on 2way microphone :/ Just Make sure you create a local account/password in tapo app -> camera -> advanced settings -> local account for them to work. |
I have those account set and I used to get rtsp before but now I can't. Was using go2rtc's tapo protocol of course and don't know since when they stopped working. Now that tapo is not going to work for a while need to get back to rtsp. Tried all of these combination: rtsp://ip/stream1 also tried adding :554 port. |
What works for me is: rtsp://username:password@camera_ip:554/stream1 . Stream 1 for high res stream, Stream 2 for the lower res. username and password in plaintext, Did you trie deleting the local account from the tapo app and recreate it ? |
Tapo RTSP user/pass not related to cloud user/pass. They are totally different. |
I'm having this issue on 1.9.2 (default in Frigate 0.14 beta 4). I have Tapo C120 cameras. I cannot get two-way audio. RTSP streams work fine, but do not provide for two-way. Using tapo:// is the same 401 error reported. "streams: 401 Unauthorized" when using tapo:// options only. I tried using various streams:
No two-way audio. Probing shows:
I'm at a loss on how to further debug/try to get this to work. You'll see that there is no senders under the producers section. The tapo:// URLs don't probe anything. |
Adding that this issue is being experience on the tc85 running version 1.2.21. Note that the tapo:// protocol worked with the tc85 while on 1.2.18, and I believe 1.2.20 (by memory, could be wrong about the #)? Affects cleartext, md5, and sha256 alike. |
Had the same issue with "user/pass wrong" on my C200, but after upgrading the c200 to 1.0.17 Build 240806 it worked. |
i'm having the same |
Just got a new C110. Updated to 1.4.3, tried connecting to it via the tapo protocol and was getting 401s. After reading over this thread, and some others, I reset my password on my TP Link account, and I've now got a working stream via |
i tried just that with my C110:
streams:
tapo_test:
- tapo://admin:37UU946A3B825CE46716D605E787C7BCFD4C69072C3320D3FC85D843187C3975@192.168.1.10
EDIT: i even disabled 2FA to no avail EDIT 2: bought a new camera, returned the old one. never updated the firmware so im running 1.3.7 using the md5 hash instead of SHA1 works perfectly! |
This is exactly what I did, unfortunately. Was hoping it may be useful, but it seems to be random. |
The same problem with TP-LINK Tapo C120 with version 1.2.2. Don't you know how to solve this? |
@rici44 downgrade the firmware. my v1.1.15 is working fine. |
thanks for the info @latel Where did you downloaded firmware? On this link, there are only these: |
I thins this one or previous is fine: Tapo_C120v1_en_1.1.3_Build_230930_Rel.56236n_up_boot-signed_1697190793364.bin, |
I tried these bins: |
All 4 of my C120s are running latest 1.2.2 firmware and working perfectly with go2rtc including two way audio.
|
can also use this to debug if you want |
@mofman thank you for the info. Blocked and configured with tapo://.. |
is https required for 2-way audio in homeassistant? |
HTTPS required for any modern browser for open access to microphone. This is not related to HA or go2rtc or anything else. This only related to the privacy policies of modern browsers. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@derekcentrico / @rici44 please keep this issue on point. it's not about frigate configs or anything else than the 401 unauthorized error some users get. |
yeap, ok, got it |
@rici44 which firmware did you go with in the end? |
@derekcentrico v1.2.2 |
@rici44 do you have the firmware download filename? I don't see it on the master blob. EDIT: wait isn't that the latest available? Did you meant something else? I'm running that on another camera and it won't work. |
@derekcentrico no, as @mofman wrote here it's just the latest version available from the app |
Big update on this thread that might help JurajNyiri/HomeAssistant-Tapo-Control#551 |
I have two C120 units on the same Tapo Cloud account and am having authentication issues using the Tapo Protocol
tapo://
on only one of them.My config:
Using the
stream
link forc120_B_2way
results in a viewer with the following errors, while using thestream
link forc120_A_2way
works just fine:webrtc/offer: streams: 401 Unauthorized
and sometimesmse: streams: 401 Unauthorized
Unsure if related, but I'm seeing the following logs:
What's weird is that I was originally having this issue with both
c120_A_2way
andc120_B_2way
and found #781 so I attempted to remove and reconnectc120_B_2way
. After,c120_A_2way
started working again andc120_B_2way
still didn't work.Also before I reconnected
c120_B_2way
, I attempted to usetapo://{cloud-password}@{IP_A}
and changed by password to not have special characters and this didn't resolve anything.Lastly, the normal RTSP streams for both A and B work just fine and I've double checked that the passwords between
c120_A_2way
andc120_B_2way
are the same as well as the IPs onc120_B_stream1
andc120_B_2way
are the same.The text was updated successfully, but these errors were encountered: