Error fetching access token. Invalid refresh token provided. (Dynamic Script Module name :#461)Extensibility triggered task failed. Event ID: ######-####-####-#####. Failure: Extensibility error received for topic compute.allocation.pre, eventId = '#####': [####] SubscriberID: vro-gateway-###, RunnableID: ##### and SubscriptionID: sub_#### failed with the following error: Workflow run [######] completed with error [Error fetching access token. Invalid refresh token provided. (Dynamic Script Module name : ....#script)]
Aria Automation 8.18.1
The issue is caused by the vCO REST plugin attempting to reuse a closed HTTP stream. When the workflow reuses an existing REST connection, the closed stream results in connection failures and token refresh errors.
Broadcom is aware of this issue and plans to address it in an upcoming Aria Automation patch release.
Until the fix is available, apply one of the following workarounds to mitigate the issue:
Workaround 1
set the value of the system property plugin.http_rest.httpclient.connectionpool.tcp_close_after_inactivity_timeout_seconds to 1 using the below command vracli vro properties set -k plugin.http_rest.httpclient.connectionpool.tcp_close_after_inactivity_timeout_seconds --value=1
Workaround 2
Modify the REST requests to include an HTTP header that explicitly closes the connection. var request = restHost.createRequest(requestType, operationUrl, requestContent, requestContentType);request.setHeader("Connection", "close");