[Support]: Environment variable in go2rtc stream configuration is not url encoded #15313
-
Checklist
Describe the problem you are havingIf you use an environment variable such as
This works fine as-is even if the password contains non-url safe characters like If you do the same in the
The Steps to reproduce
Version0.14.1-f4f3cfa In which browser(s) are you experiencing the issue with?N/A Frigate config filecameras:
mycamera:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/mycamera
go2rtc:
streams:
mycamera:
- rtsp://username:${FRIGATE_RTSP_PASSWORD}@192.168.1.100 docker-compose file or Docker CLI commanddocker \
run \
--rm \
--name=frigate \
--log-driver=journald \
--env-file /etc/secrets.d/frigate.conf \
-v /etc/localtime:/etc/localtime:ro \
-v /var/lib/frigate:/config \
-v /data/frigate:/media/frigate \
--privileged \
'--net=host' \
'--shm-size=8g' \
'--mount=target=/tmp/cache,tmpfs-size=1000000000,type=tmpfs' \
'--device=/dev/dri' \
'--device=/dev/dma_heap' \
'--device=/dev/rga' \
'--device=/dev/mpp_service' \
ghcr.io/blakeblackshear/frigate:0.14.1-rk Relevant Frigate log outputN/A Relevant go2rtc log outputDec 02 14:37:22 nixos docker-frigate-start[7093]: 2024-12-02 14:37:22.873962966 14:37:22.873 WRN [rtsp] error="streams: parse \"rtsp://username:[email protected]:554/Streaming/channels/101/\": net/url: invalid userinfo" stream=mycamera Operating systemOther Linux Install methodDocker CLI Network connectionWired Camera make and modelLTS Screenshots of the Frigate UI's System metrics pagesN/A Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
go2rtc's config seems to expect users to url encode strings, but users have had issues in the past when Frigate explicitly url encodes usernames and passwords, so we're hesitant to write code to change this behavior again. |
Beta Was this translation helpful? Give feedback.
go2rtc's config seems to expect users to url encode strings, but users have had issues in the past when Frigate explicitly url encodes usernames and passwords, so we're hesitant to write code to change this behavior again.