ECS / Client / exceptions / ConflictException
ConflictException#
- class ECS.Client.exceptions.ConflictException#
The
RunTask
request could not be processed due to conflicts. The providedclientToken
is already in use with a differentRunTask
request. TheresourceIds
are the existing task ARNs which are already associated with theclientToken
.To fix this issue:
Run
RunTask
with a uniqueclientToken
.Run
RunTask
with theclientToken
and the original set of parameters
Example
try: ... except client.exceptions.ConflictException as e: print(e.response)
- response#
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'resourceIds': [ 'string', ], 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The
RunTask
request could not be processed due to conflicts. The providedclientToken
is already in use with a differentRunTask
request. TheresourceIds
are the existing task ARNs which are already associated with theclientToken
.To fix this issue:
Run
RunTask
with a uniqueclientToken
.Run
RunTask
with theclientToken
and the original set of parameters
resourceIds (list) –
The existing task ARNs which are already associated with the
clientToken
.(string) –
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.