Error Codes and messages in deepstream SDK

Hi Guys,

I would like to know how to get access to the current status of the application. Also, is there documentation regarding the various errors and their codes in the SDK. I am specifically looking for gstreamer related errors.

Please guide me how to understand the different errors and inform the user.

Kindly help me out.

Thanks.

I would like to know how to get access to the current status of the application.
[bcao]I cannot get your meaning

For Gstreamer error you can set GST_DEBUG=n to check the log and refer https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html?gi-language=c

Hi bcao,

I am building an application which requires me to send the current status of the application to the backend server. Just logging the debug statements do not help because I do not understanding the statements. I would like to send error codes or messages which can be comprehended by a novice user. For example, if the stream is no longer available, I wish to get the corresponding error for it and send it to the backend server. Hope I am clear now.

Please help me out.

Thanks.

I don’t think you can get the detailed info only per the error code, you should add logic in your application to handle the exception and notify your backend server AFAIK.

Hi bcao,

Thanks for the response. Where in the application do I catch the exceptions. Is there documentation to guide me how to do it?

Thanks.

I think you can go through https://docs.nvidia.com/metropolis/deepstream/4.0/dev-guide/index.html#page/DeepStream_Development_Guide%2Fdeepstream_custom_model.html and read the README and sample app source code for reference. It will depend on your use case where to add your logic.