cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
1413
Views
0
Helpful
2
Replies
huhe
Cisco Employee

cobra.mit.request.CommitError: Token was invalid (Error: Token timeout)

I tried the following 2 methods, but no luck.

1, LoginSession.refresh()

2, first did LoginSession.logout(), then created a new LoginSession()

Any idea how to solve the issue?

Thanks,

Huan

2 REPLIES 2
VinuraDhananjaya
Beginner

Hello, when the token gets expired, what I do is a re-login. (No logouts, no refreshes just  login again.) It appears that currently Cobra SDK does not have a token refresh method either, unlike in ACItoolkit and PyACI modules.

FadiH
Beginner

Hello, 

 

I have the same problem in my scripts. Did you find a way to solve this issue ? if yes, can you please share it ?

Many thanks 

 

Fadi

Create
Recognize Your Peers
Content for Community-Ad