Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU): GPU • DeepStream Version: 7.0 • JetPack Version (valid for Jetson only) • TensorRT Version • NVIDIA GPU Driver Version (valid for GPU only) • Issue Type( questions, new requirements, bugs): bug
**• How to reproduce the issue ?
call ‘http://localhost:9000/api/v1/stream/remove’ api returns 200 though request is invalid. • Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
I am testing nvmultiurisrcbin. we are trying to test remove camera feature.
nvds_rest_stream_parse returns false due to bad request, due to this stream_cb is not called.
still handleRemoveStream return StatusOk, which is 200. Actually it should return 400.
The current implementation of nvds_rest_stream_parse marks the request as a Bad Request and returns false if the camera URL or camera ID is empty. However, handleRemoveStream still returns StatusOk (HTTP 200) in such cases. In my opinion, handleRemoveStream should instead return StatusBadRequest to accurately reflect the invalid input scenario.