RemoteException wrapping UiPath.Service.Orchestrator.Core.NoUserSessionException: Could not obtain access token. (invalid_grant)
at UiPath.Service.SessionInfo.ThrowIfException() in D:\a\1\s\Robot\UiPath.Service\Attended\Service\IAttendedService.cs:line 142
at UiPath.Service.UserHost.AttendedServiceProxy.BeginOrUpdateSession(Guid sessionJobId, CancellationToken ct) in D:\a\1\s\Robot\UiPath.Service\UserServices\AttendedServiceProxy.cs:line 138
at UiPath.Service.UserHost.StudioOperations.Prepare(ClientProcessMessage message, CancellationToken ct) in D:\a\1\s\Robot\UiPath.Service\UserServices\StudioOperations.cs:line 34
at UiPath.Service.UserHost.StudioOperations.GetRobotInfoCore(StudioAgentMessage message, CancellationToken ct) in D:\a\1\s\Robot\UiPath.Service\UserServices\StudioOperations.cs:line 42
— End of stack trace from previous location —
at UiPath.Service.Api.IStudioOperationsExtensions.GetRobotInfo(IStudioAgentOperations operations, StudioAgentMessage message, CancellationToken ct)
at UiPath.Studio.OnlineServices.Services.ConnectionSettingsService.EnsureRobotConnectedToOrchestrator()
at UiPath.Studio.OnlineServices.Services.ConnectionSettingsService.EnforceSettings(Boolean refresh, CancellationToken cancellationToken)
Can you provide more information,
What you are trying and where it throwing the exception
@Laxmiputra_g
Providing more info can help us to provide the solution.
For workaround go through below tutorial,
Tags: Studio Log-in Orchestrator
Hi Laxmiputra_g,
This looks like an authentication issue between UiPath Studio/Robot and Orchestrator. The invalid_grant error usually means the current login session or token is no longer valid.
Could you try signing out from UiPath Studio/Assistant and then signing in again? Also, make sure you’re connected to the correct Orchestrator organization and tenant.
If the issue still occurs, try restarting UiPath Assistant/Studio and re-authenticating.
If it’s still not resolved, please share your UiPath version and whether you’re using Automation Cloud or Automation Suite. That would help to troubleshoot it further.
If you are trying on your company laptop or network, there is high chance the firewall restriction could be the issue.
Check with your network admin to whitelist UiPath related URL’s.
For UiPath Automation Cloud login, allowlist these domains (FQDNs) in your firewall:
Automation Cloud Portal – Sign-in scenarios
-
Basic authentication
https://account.uipath.comhttps://cloud.uipath.comhttps://platform-cdn.uipath.com
-
Sign in with Microsoft
https://aadcdn.msftauth.nethttps://account.uipath.comhttps://cloud.uipath.comhttps://login.live.comhttps://login.microsoftonline.comhttps://platform-cdn.uipath.com
-
Sign in with Google
https://account.uipath.comhttps://cloud.uipath.comhttps://accounts.google.comhttps://google.comhttps://lh3.googleusercontent.comhttps://platform-cdn.uipath.comhttps://www.gstatic.com
-
Sign in with LinkedIn
https://account.uipath.comhttps://cloud.uipath.comhttps://lnkd.demdex.nethttps://platform-cdn.uipath.comhttps://platform.linkedin.comhttps://static-exp1.licdn.comhttps://www.linkedin.com
-
Sign in with Azure AD
https://aadcdn.msftauth.nethttps://cloud.uipath.comhttps://login.microsoftonline.com
-
First-time sign-in / reset password
https://uipath.eu.auth0.comhttps://account.uipath.com
For UiPath Assistant/Studio sign-in, also allow the SignalR and NuGet/CDN endpoints listed in the same table if you use those clients.