pnp / pnp/pnpframework

Error parsing GetSitePropertiesByUrl with ExecuteQueryRetryAsync extension from PnP.Framework. Microsoft.Online.SharePoint.TenantAdministration.EsignatureThirdPartyProvidersInfo

Open
#982 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Hi,
not sure if it's the proper place to log this issue, but as we are using the PnP.Framework....

We have some code that is using the method from Tenant GetSitePropertiesByUrl... something like this
image

We are using the PnP extension for doing the Query with Retries... The issue is that, it seems that the nightly PnP.Core included as dependency has an issue parsing the response and it's giving the following exception

System.InvalidCastException: Unable to cast object of type 'System.String' to type 'Microsoft.Online.SharePoint.TenantAdministration.EsignatureThirdPartyProvidersInfo'.\r\n at Microsoft.SharePoint.Client.JsonReader.ReadT\r\n at Microsoft.SharePoint.Client.JsonReader.ReadListT\r\n at Microsoft.Online.SharePoint.TenantAdministration.Tenant.InitOnePropertyFromJson(String peekedName, JsonReader reader)\r\n at Microsoft.SharePoint.Client.ClientObject.FromJson(JsonReader reader)\r\n at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)\r\n at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()\r\n at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServerAsync(ChunkStringBuilder sb)\r\n at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryAsync()\r\n at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()\r\n at Microsoft.SharePoint.Client.ClientContext.ExecuteQueryAsync()\r\n at Microsoft.SharePoint.Client.ClientContextExtensions

Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing GetSitePropertiesByUrl with the PnP.Framework ExecuteQueryRetryAsync extension and inspect the response handling around the Tenant.InitOnePropertyFromJson stack-trace entry. Investigate the nightly PnP.Core dependency and the EsignatureThirdPartyProvidersInfo cast; done means the query parses successfully without the reported InvalidCastException.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.