Skip to content

/api/core/background-tasks/ returns TypeError #20120

@fabi125

Description

@fabi125

Deployment Type

Self-hosted

NetBox Version

v4.3.6

Python Version

3.12

Steps to Reproduce

  1. Go to https://demo.netbox.dev/core/background-queues/0/failed/ and click on any of the failed tasks.
  2. Insert /api/ in the URL, e.g. https://demo.netbox.dev/api/core/background-tasks/7a0b851f-b224-46d7-a6b5-8778939eee49/

Expected Behavior

JSON representation of the background task is returned

Observed Behavior

{
  "error": "Object of type Job is not JSON serializable",
  "exception": "TypeError",
  "netbox_version": "4.3.6",
  "python_version": "3.12.9"
}

or

{
  "error": "Object of type EventRule is not JSON serializable",
  "exception": "TypeError",
  "netbox_version": "4.3.6",
  "python_version": "3.12.9"
}

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions