Refresh the token when Integration throws 401 status code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2023 02:36 AM
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,
Please help me on this.
Thanks in advance,
Chaithanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2023 02:49 AM
@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....