/odata/Sessions/UiPath.Server.Configuration.OData.GetMachineSessionRuntimes thia api not working for uipath onprem

Hi Team ,

the following api /odata/Sessions/UiPath.Server.Configuration.OData.GetMachineSessionRuntimes return

{
“message”: “An error has occurred.”,
“errorCode”: 0,
“traceId”: “00-f282e8d63bf0d4a565bbea5f9a8605f8-1186c4af205ee2cf-00”,
“resourceIds”: null
}

this error response can you please help me to fix this error ?

This error could be due to various reasons
Initially Make sure that you are using the correct API endpoint and that you are sending the correct request parameters.

And Follow the guidelines as per this document

Hope this helps

Cheers @muppudathi_raja

Hii @muppudathi_raja

follow this steps:

Make sure that the request you are sending to the API is correctly formatted. Ensure that the URL, HTTP method, and request headers are correct.
Verify that you have the necessary authentication and authorization to access this API. Make sure you have the required API keys, tokens, or credentials.
Review the API documentation to ensure you are using the API correctly. Look for any specific parameters or headers that might be required.
Access server logs if possible to find more detailed information about the error. The logs may contain stack traces or error messages that can help identify the issue.
Check if there are any network-related issues that could be causing the problem. Ensure that your server or client can reach the API server without any connectivity problems.

Thanks & cheers