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

jelle-vanloock
Deputy Chef I
Deputy Chef I

Can you please provide more information how you are trying to refresh your token?


On my side I have implemented the following:

refresh_on: [401] (whatever code the API is returning when authentication is failing)

Have you did that in sdk code? can you send me the code which I can use on my api calls?

himanshu
Deputy Chef I
Deputy Chef I

Could you share the link or the screenshot of the recipe here for a better understanding?

bhavesh-patel
Deputy Chef III
Deputy Chef III

I don't have a screenshot with me right now but I got error at recipe level. I'll provide you when on next attempt I'll get error which is after 24hrs.