MicrosoftDocs/Azure-RMSDocs

Not a consistent error code returned from MIP sdk ( C++ )

Closed this issue · 1 comments

Hi,

I am using MIP c++ sdk(version 1.8) to tag the files. As MIP supports only few formats for classification we want to know if a file type is not supported by looking at the error code returned by MIP api.

Specifically, we want to address two scenarios: unsupported file types for MIP classification and an expired application secret or certificate.

Regarding the first scenario, we have observed inconsistent error codes when trying to classify unsupported file types. While we receive mips::ErrorType::NOT_SUPPORTED_OPERATION for .txt and .bmp files, we receive mips::ErrorType::INTERNAL_ERROR for .png and .jpg files. We want to display clear statistics about unsupported file types and files that failed to classify due to an error. Can you please provide your suggestion for which error code to use for identifying unsupported file types?

For the second scenario, we would like to know the expected error code if the application secret or certificate expires during processing.

Thanks @tommoser for his response.
For unsupported file types expected error code is NOT_SUPPORTED_OPERATION .
As .png and .jpg file formats are supported format, I will test them with latest sdk version and see if I still get the error.