-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bad Request returned from API when editing a path published by software. #2067
Comments
Hello, publishing to a path doesn't cause a path configuration to be created, on the contrary, publishing to a path is only possible if a path configuration already exists. The default configuration is something like that: paths:
all: The path configuration called "all" catches all paths. If you want to create and control a configuration for a certain path, add it through the configuration file or through the API: paths:
test: |
this involve<s /v2/config/paths/edit and /v2/config/paths/remove
this involves /v2/config/paths/edit and /v2/config/paths/remove
this involves /v2/config/paths/edit and /v2/config/paths/remove
Understood, thank you for your time! |
This issue is being locked automatically because it has been closed for more than 6 months. |
Which version are you using?
v0.23.7
Which operating system are you using?
Describe the issue
API returns a 400 Bad Request when attempting to edit a path that was added by software, e.g. Gstreamer. The issue does not appear to exist when editing a path that was added via the API or manually entered into the config file.
Describe how to replicate the issue
gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink location=rtsp://{API_ADDRESS}:{RTSP_PORT}/test
curl
edit the path's config:curl -X POST http://{API_ADDRESS}:{API_PORT}/v2/config/paths/edit/test -H 'Content-Type: application/json' -d '{"runOnInitRestart": true}'
400 Bad Request
Did you attach the server logs?
yes
mediamtx_v0.23.7_issue2067.log
Did you attach a network dump?
no
The text was updated successfully, but these errors were encountered: