uipath-python
uipath-python copied to clipboard
DateTime sterilization when programmatically creating queue items
There seems to be an issue when calling client.queues.create_item with a QueueItem which contains a dueDate, deferDate or riskslaDate.
When the method is executed, the following error occurs:
TypeError: Object of type datetime is not JSON serializable
My guess is that somewhere in the create_item function the QueueItem isn't being correctly serialized before being added to the request body to be sent to the Orchestrator API. This means that it possibly attempts to send a datetime object over a formatted string.
@Samuel-Ember can you share a small concrete sample ?
@Samuel-Ember we fixed the serialization issue. please upgrade the uipath-platform version >=0.1.41 and retry