I am getting the below boto3 error every now and then when i read the websocket. However, the same access token works on re-running. Am I missing anything? Is this a known issue? Or any other suggestion to handle this scenario?
I am executing my code from AWS Linux. Error Message: botocore.exceptions.ClientError: An error occurred (ExpiredTokenException) when calling the PutItem operation: The security token included in the request is expired
Just to add, all i am doing is calling a function on ticks that writes the data into dynamodb. No calculations and operations.