Error parsing GetSitePropertiesByUrl with ExecuteQueryRetryAsync extension from PnP.Framework. Microsoft.Online.SharePoint.TenantAdministration.EsignatureThirdPartyProvidersInfo #982
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
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.Read[T]()\r\n at Microsoft.SharePoint.Client.JsonReader.ReadList[T]()\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
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](https://github.com/pnp/pnpframework/assets/8925463/4ba9de6b-96ed-423e-8f3c-779b68c7d504)
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.Read[T]()\r\n at Microsoft.SharePoint.Client.JsonReader.ReadList[T]()\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.