cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2190
Views
0
Helpful
2
Replies

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

huhe
Cisco Employee
Cisco Employee

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

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
Level 1
Level 1

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