Getting an intermittent 401 error response when making a call through K2 - REST API to UiPath

  • 15 February 2022
  • 0 replies
  • 56 views

Userlevel 5
Badge +20
 

Intermittent 401 error response when making a call through K2-REST API to UiPath

kbt179393

PRODUCT
K2 Cloud
K2 Five
BASED ON
K2 Cloud (all)
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

You may be getting an intermittent 401 error response when making a call through K2 - REST API to UiPath.

Symptoms

The issue could be caused by the  UiPath OAuth tokens expiring after 30 minutes. K2 refreshes the token after 60 minutes by default.

Troubleshooting Steps

Increasing the UIPath token lifetime to above 60 minutes will resolve the issue.

Update the UiPath web.config, add the following setting in the AppSettings section and set “Auth.Cookie.Expire" to 70 as follows:

<add key="Auth.Cookie.Expire" value="70" />
<add key="Auth.Bearer.Basic.Expire" value="70" />


0 replies

Be the first to reply!

Reply