Skip to content

failed to open the rtsp streaming due to "401 Unauthorized" error when I tried to use the onvif-mapper project #134

@wubin-ericsson

Description

@wubin-ericsson

the error log was printed as below:

[rtsp @ 0x7f0d1c000d00] method DESCRIBE failed: 401 Unauthorized
E0619 01:41:06.565069 7 device.go:133] processed streaming data by saveFrame Error: Unable to open file rtsp://192.168.130.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
I0619 01:41:06.565094 7 device.go:249] onvif-device-01 twin readonly property: saveVideo
2025-06-19T01:41:06Z DBG RPC action=GetProfiles msg="200 OK" status=200
2025-06-19T01:41:06Z DBG RPC action=GetStreamUri msg="200 OK" status=200
[rtsp @ 0x7f0d2c001040] method DESCRIBE failed: 401 Unauthorized
E0619 01:41:06.603008 7 device.go:133] processed streaming data by saveVideo Error: could not open input file 'rtsp://192.168.130.20:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1

Actually the username and password has been specified in device-instance.yaml, but it seems the given username and password didn't take effect, any hints? thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions