Unable to create groups using Python script due to token expiration issue.
I have written a python script that generates an authentication token that will be used for performing various basic tasks like, fetching user information , creating groups etc.
While executing the python script, token was generated successfully. The token is used in get user requests(get requests) and it is working fine. When the same token is being used to create groups(post requests), it throws status 401 issue:
{'meta': {'status': 'Unauthorized', 'timestamp': '2023-10-19T13:09:53.917+0000', 'message': 'token is expired'}}
I am pretty sure that the token is not expired and all the variable declaration of executing requests are in place. Is it a known issue that executing create groups by accessing swagger apis using python has problems ? Or am I missing something here? Any info in this regard will be of great help.
Regards,
Sailesh
------------------------------
Sailesh Mohan
Illumina
------------------------------