cancel
Showing results for 
Search instead for 
Did you mean: 

API Connection Timeout Issue

bhavesh-patel
Deputy Chef III
Deputy Chef III

Hi everyone,


We ran into an issue, I have setup connection with client id and client secret which will give me access token to call APIs, now the issue is after 24 hours the token was expired. So now I am not able to run my recipe without reconnecting my connection.


I have also setup refresh token logic in connector sdk code but somehow it is not working.


Can anyone help me with this? Does anyone found similar problem like setting up main token for 24hrs and then used refresh token for further API calls.


Thanks in advance.

5 REPLIES 5

himanshu
Deputy Chef I
Deputy Chef I

The API that you are using should be providing an error code,

when an invalid token is used the normal process should be to call the new token issuing steps before proceeding further.

So I think it is more about how you write the recipe.