I get an error when accessing the camera archive on milestone api gateway

Hello

We want to pull the camera list and camera archives camera via milestone api gateway. can you share a working scprit.

the version we used XProtect VMS 2023 R2

We get the scprit 500 error that we have written in the attachment.

We have made the necessary authorizations via iis. we still get 500 error.

scprit and error code are attached.

Best Regards,

ibrahim

We have an idea that you IIS is not setup and working correctly, we base this on the error.

Most likely causes:

  • IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
  • IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
  • IIS was not able to process configuration for the Web site or application.
  • The authenticated user does not have permission to use this DLL.
  • The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

I find

/api/rest/v1/recordingServers/{server_id}/cameras/{camera_id}/sequences

This is wrong on multiple levels.

You can from recordingServers find the next level, but that is not cameras but hardware.

Tip. If you do

/api/rest/v1/recordingServers/{server_id}?resources

you would find the hardware is one of the resource options.

/sequences

Doesn’t exist.

I recommend a deeper look into the documentation at

https://doc.developer.milestonesys.com/mipvmsapi/api/config-rest/v1/

Please , if you need to ask another question here on the forum please mention the request instead of sending a big file of code, I was confused and I guess nobody else answered.