API: Gets runtime licenses:Error: Internal Server Error


I’ve got a HTTP 500 error on this API Call:

Response Body

  "message": "Une erreur sʹest produite.",
  "errorCode": 0,
  "resourceIds": null

Response Headers

 api-supported-versions: 11.0
cache-control: no-cache, no-store, must-revalidate
content-length: 74
content-security-policy: default-src 'self';script-src 'self';style-src 'self' 'unsafe-inline';img-src 'self' data: https://*.blob.core.windows.net https://*.amazonaws.com blob:;font-src 'self' data:;connect-src 'self' wss: https://sentry.io https://studio-feedback.azure-api.net https://*.service.signalr.net https://*.blob.core.windows.net https://*.amazonaws.com dc.services.visualstudio.com;worker-src 'self' blob:
content-type: application/json; charset=utf-8
date: Mon, 10 Jan 2022 15:26:18 GMT
expires: -1  pragma: no-cache  request-context: appId=  server:
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-correlation-id: d1be9470-946c-417e-b18a-e3183e695465
x-download-options: noopen
x-frame-options: Deny
x-robots-tag: noindex, nofollow
x-xss-protection: 1 

When I try this call with another licence Type (with no licences used, ex NonProduction)
I’ve got a normal answer:

  "@odata.context": "https://rpa-orchestrator.enedis.fr/odata/$metadata#RuntimeLicenses",
  "@odata.count": 0,
  "value": []

About the softwares installed in my company:
© UiPath 2022
Orchestrator 2020.10.8

UiPath.WebApi 11.0

kind regards

1 Like

Hi @martin.sirbu

Could you let me know if you are experiencing any issues while navigating to the following page:
Orchestrator → Tenant → License and then by clicking the See More on the Production (Unattended) license?

You can freely inspect the API calls in the browser Network tab as well. It looks like the Development license triggers a different API call, mainly this one:


Thanks for your rapid assistance.
Your solution is pretty nice and will help me for my future tasks! Thank you very much.
GetLicensesNamedUser is the API call I need! My problem is solved!
Maybe Uipath should restrict the field robotType in LicensesNamedUser and LicensesRuntime or at least modify the answer if the API call is not correct.

I’m glad it helped. Thank you for bringing this to my attention, as it looks like there is a bug in there as well that I’ve forwarded to our team for investigation.