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

A connectiTimeout Error when Applying Provisioning Template using PnP Framework 1.15 on .NET Core 8 on attempt failed #1001

Open
Baziking opened this issue Mar 27, 2024 · 1 comment

Comments

@Baziking
Copy link

I am encountering a persistent issue when attempting to apply a provisioning template to SharePoint Online using the PnP Framework version 1.15, implemented in a .NET Core 8 environment written in C#.
The specific method call causing the problem is web.ApplyProvisioningTemplate(template);. Whenever this command is executed, the process fails with a timeout error, indicating a failure to establish a connection to SharePoint Online. Error Message: sql Copy code Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: Functions.ApplyXmlToProjectWeb ---] Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException: Result: Failure Exception: System.Net.WebException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [::ffff:52.105.42.27]:443 (onlinemontazebroz.sharepoint.com:443) ---] System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond...
Steps to Reproduce: Create a .NET Core 8 application. Implement PnP Framework 1.15 to apply a provisioning template to SharePoint Online. Execute the web.ApplyProvisioningTemplate(template); method.

Thank you for taking the time to read my post. If anyone has any insights or suggestions on how to address the issue I've described above, I would greatly appreciate your assistance. Please let me know if there's any additional information I can provide.

Looking forward to your helpful responses.

@Baziking
Copy link
Author

Hi all,

I've run into timeout issues with ApplyProvisioningTemplate from PnP Framework when creating many client pages. It reminds me of past experiences where using ExecuteQuery() instead of ExecuteQueryRetry() caused similar problems, possibly due to the lack of retry mechanisms.

Could it be that ApplyProvisioningTemplate is using ExecuteQuery() somewhere without retries, leading to these timeouts? Anyone else noticed this or has insights?

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