401 - Computer Vision cannot be enabled

Hello everyone,

i got an issue with one of my automations.

"[Error code: 401] Computer Vision cannot be enabled: the current user is not authenticated.

To fix this, log in to Automation Cloud or copy the API key from https://cloud.uipath.com > Admin > Licenses > Robots & Services and paste it in Project Settings > Computer Vision > API Key.

When enabled, app screenshots while indicating are sent to UiPath Cloud to ensure automation resilience, so mock data should be used to avoid sending any sensitive information. Run-time screenshots are never collected."

i get a collection of invoices from one of our intern interfaces. then i extract and verify some additional information for each invoice in one of our applications with several CV activities.

automation runs unattended on a windows server daily (monday-friday) for 2 1/2 hours in the evening. usually it runs smooth and without any trouble. but about once a week it rises the code 401 exception at different time and at no specific day.
it can happen after 45 minutes of runtime, when 2 invoices were left or even after being in for just 5 minutes. quite random and no pattern i could recognize so far.

i already checked the API key, also generated a new one and replaced.
nothing helped so far. i also researched the forum for a possible solution, but there pretty much was nothing i could give a try.
i will expand every cv-activity by a retry scope in the next couple weeks. i hope this will solve the issue. only time will show.

all activities in project are updated
we are running an enterprise setup with 240mp/min, but exceeding would result in a 429 error code, which isn´t the case here.

any guesses or fixes?

thank you very much in advance :metal:

@CyberGopnik

  1. check the maintenance cycle
  2. check if orchestrator is down
  3. check the event viewer logs to know if something different is happening
  4. is it failing on any specific activity or a specific set of activities

cheers

  1. i already searched for UiPath´s maintenance schedule multiple times, but couldnt find any yet

  2. orchestrator was up in my region when those exceptions were thrown. also checked UiPath´s status page (cv-service etc.) → no (documented) downtime at all

  3. will check windows logs tomorrow. :+1:

  4. i only got 2 faulted job´s within the last 2 weeks. both failed due to error code 401.
    one occured in cv scope activity, the other one in cv extraxt table.
    im very sure one of last years job faulted in cv get text.
    all cv operations are gathered in the sequence (there is only one cv scope)

thank you