Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
magarma opened this issue Feb 8, 2024 · 0 comments

Comments

@magarma
Copy link
Contributor

magarma commented Feb 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant