Skip to content

fix: serialize datetime fields when creating queue items (#670)#1607

Merged
radu-mocanu merged 1 commit intomainfrom
fix/issue-670-queue-datetime-serialization
Apr 30, 2026
Merged

fix: serialize datetime fields when creating queue items (#670)#1607
radu-mocanu merged 1 commit intomainfrom
fix/issue-670-queue-datetime-serialization

Conversation

@radu-mocanu
Copy link
Copy Markdown
Collaborator

@radu-mocanu radu-mocanu commented Apr 30, 2026

Summary

  • queue items with defer_date, due_date, or risk_sla_date no longer raise TypeError: Object of type datetime is not JSON serializable
  • applies to create_item, create_items, start_transaction_item, and complete_transaction_item

Why

Fixes #670

model_dump was called without mode="json", so the field_serializer configured to convert datetime to ISO 8601 never fired and httpx received raw datetime objects it could not encode.

Development Packages

uipath

[project]
dependencies = [
  # Exact version:
  "uipath==2.10.60.dev1016076290",

  # Any version from PR
  "uipath>=2.10.60.dev1016070000,<2.10.60.dev1016080000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }

uipath-platform

[project]
dependencies = [
  # Exact version:
  "uipath-platform==0.1.41.dev1016076290",

  # Any version from PR
  "uipath-platform>=0.1.41.dev1016070000,<0.1.41.dev1016080000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-platform = { index = "testpypi" }

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Apr 30, 2026
@radu-mocanu radu-mocanu added the build:dev Create a dev build from the pr label Apr 30, 2026
@radu-mocanu radu-mocanu merged commit 1732f7a into main Apr 30, 2026
171 checks passed
@radu-mocanu radu-mocanu deleted the fix/issue-670-queue-datetime-serialization branch April 30, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DateTime sterilization when programmatically creating queue items

2 participants