Skip to content

DateTime sterilization when programmatically creating queue items #670

@Samuel-Ember

Description

@Samuel-Ember

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions