Refresh the token when Integration throws 401 status code

Community Alums
Not applicable

Hi Experts,

I 'm working on Integration, but the token validity is about only one hour after that token will get expire and it is throwing 401 status code and saying "Invalid Authentication",
so in the below code once it throws 401 status I'm trying to  resend the integration message from begining, that means trying to call the function [in line no.39] to get new token and to continue, but it is not working still I'm getting an error,

CHAITHANYA13_0-1691314513236.png

 

Please help me on this.
Thanks in advance,
Chaithanya

1 REPLY 1

Sohail Khilji
Kilo Patron
Kilo Patron

@Community Alums ,

 

Did you try to execute the code from background script to check if its generating a new Token ?

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect