Skip to content

Error reading JObject from JsonReader #117

@mathiasbl

Description

@mathiasbl

I got this error when the response of the request was a 401. There's no content then so the ShouldRetryWebAPI fails with a JSON parse error.

image

Full Stack
AggregateException: One or more errors occurred. (Error reading JObject from JsonReader. Path '', line 0, position 0.)
JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.Stack Trace:
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient.ShouldRetryWebAPI(Exception ex, Int32 retryCount, Boolean& isThrottlingRetry) at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient.Command_WebExecuteAsync(String queryString, String body, HttpMethod method, Dictionary`2 customHeaders, String contentType, String errorStringCheck, Guid requestTrackingId)
at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient.Command_WebAPIProcess_ExecuteAsync(OrganizationRequest req, String logMessageTag, Boolean bypassPluginExecution, CancellationToken cancellationToken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions