Scheduled reports may not be sent with the "ClientError: An error occurred (ExpiredToken) when calling the ListVerifiedEmailAddresses operation: The security token included in the request is expired" error

Scheduled reports may not be sent with the "ClientError: An error occurred (ExpiredToken) when calling the ListVerifiedEmailAddresses operation: The security token included in the request is expired" error

Scheduled reports may not be sent with the following errors:

INFO:  get_ses_client(ses_management.py:72)  _ses_client=<botocore.client.SES object at 0x7f41570c8e10>
ERROR:  get_verified_addresses(ses_management.py:92)  Failed SES: list_verified_email_addresses
Traceback (most recent call last):
File "./cpmserver/cpm/ses_management.py", line 88, in get_verified_addresses
File "/opt/n2wsoftware/python/lib/python2.7/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/opt/n2wsoftware/python/lib/python2.7/site-packages/botocore/client.py", line 661, in _make_api_call
raise error_class(parsed_response, operation_name)
ClientError: An error occurred (ExpiredToken) when calling the ListVerifiedEmailAddresses operation: The security token included in the request is expired
INFO:  run_scheduled_report(scheduled_reports.py:101)  Scheduled_report: Schedule_name. No verified recipients. Will not send report

If you encounter this error, please upgrade to the latest  2.X.X version.

Reference defect number – N2WS-9592
Link to Release Notes – release notes for the latest v2-7-x cpm release