Open hmlnarik opened 5 months ago
Do you have developer skills? I think this is place of problem https://github.com/AlexxIT/go2rtc/blob/b08b88357eb7903bb53506e1cf9f99dd7db24f1a/pkg/tapo/client.go#L284
curl -v --request POST \
--url http://192.168.1.123:8800/stream \
--header 'Content-Type: multipart/mixed; boundary=--client-stream-boundary--'
Do you have developer skills? I think this is place of problem
Yup, that might be right as there is no WWW-Authenticate
header:
curl -v --request POST \ --url http://192.168.1.123:8800/stream \ --header 'Content-Type: multipart/mixed; boundary=--client-stream-boundary--'
This returns:
* Trying 192.168.1.123:8800...
* Connected to 192.168.1.123 (192.168.1.123) port 8800 (#0)
> POST /stream HTTP/1.1
> Host: 192.168.1.123:8800
> User-Agent: curl/7.88.1
> Accept: */*
> Content-Type: multipart/mixed; boundary=--client-stream-boundary--
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: Streamd
< Date: Mon, 05 Feb 2024 09:35:53 UTC
< Content-Type: multipart/mixed;boundary=--device-stream-boundary--
< Pragma: no-cache
< Cache-Control: no-cache
< Key-Exchange: cipher="AES_128_CBC" username="none" padding="PKCS7_16" algorithm="MD5" nonce="b3988e8cadd1b060e6cc35249d8d0a5c"
< Connection: close
<
Connection gets closed in about 10 seconds.
Something new without auth and none password. @JurajNyiri have you saw this?
@hmlnarik try to:
I haven't seen this yet. If it is something new it will come up for recordings for Tapo integration so we will see. We need to know what is the current firmware user uses.
@AlexxIT I am not using Tapo app, and I tried go2rtc for that reason. Would it be possible to not authorize if the WWW-Authenticate is not present?
That must be the reason. @hmlnarik never configured the camera through tapo app.
You really didn't connect the camera to the app? Not even once? Where you get user and password (hash)? And how you connect camera to WiFi?
I think he might have used https://github.com/JurajNyiri/pytapo/issues/24 . I am torn on supporting this in pytapo and tapo integration for many reasons.
I used similar approach to that described in https://github.com/JurajNyiri/pytapo/issues/24 to connect to wifi.
I'll try to just skip adding Authorization
header, or craft it somehow. Thanks for the help so far.
Well. You can try to fix this yourself. I don't know when I will have time to do this trick with my camera.
Thank you for the go2rtc product!
I hope you could help me with crash when opening webrtc.html with the following source:
Could you please help me to if that could be a configuration issue? Running go2rtc using docker image via
podman
. Plainrtsp
stream works perfectly.Stacktrace:
Trace log
I have a number of IP addresses. For simplicity, the relevant ones have been replaced with `192.168.a.` below: `192.168.a.cam` for camera, `192.168.a.browser` for browser, and `192.168.a.go2rtc-host` for the RPi hosting go2rtc.Camera: Tapo C500