The CreatorCon Call for Content is officially open! Get started here.

REST STEP Action in flow designer

Community Alums
Not applicable

Hi All,

 

I have a use case where I am calling a internal Servicenow scripted rest resource from a Action -> REST Step and I am receiving below error.

{"error":{"message":"com.glide.communications.ProcessingException: User Not Authenticated. Could not retrieve a new access token with the refresh token. User is not logged in.","detail":""},"status":"failure"}

Scripted REST Resource Details:

This is in return calling an Azure End Point which uses OAuth 2.0. 

 

Using REST API explorer I am able to successfully able to obtain a response however when the scripted REST resource from REST Step I get above error. Any help is appreciated.

2 REPLIES 2

Ishaan Shoor
Mega Sage
Mega Sage

Have you setup the connection & credentials correctly? Because after setting up the connections & credentials you need to get oAuth token once to get it working.

 

 

Hope this helps!
BR.
Ishaan Shoor

Community Alums
Not applicable

Hi Ishaan, thank you for your response. For debugging purposes I have removed authentication for my scripted rest resource so I have no credential configured in my connection and credential.

 


I am pretty sure that the scripted rest resource is being called with out any issues I see in the logs that’s it is being executed as guest user I suspect if it’s the access issue to tokens for guest users.

 

kal