Skip to content

Jobs.GetErrorDetailsAsync throws Netwonsoft.Json.JsonSerializationException #920

@robert-bialy

Description

@robert-bialy

Checklist

  • I have looked into the Readme and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

In a recent project I was using Management API SDK to get job errors.
When I invoke Jobs.GetErrorDetailsAsync on a job without any errors it throws an exception:
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Auth0.ManagementApi.Models.JobErrorDetails' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.

Image

Reproduction

  1. Launch a job which does not return any error
  2. Use Jobs.GetErrorDetailsAsync with JobId
  3. Receive an error

Additional context

No response

auth0.net version

7.44

.NET version

8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions