e.WebRequestExecutor.WebRequest.UserAgent = "NONISV|digdes|yourapp/1.0";
The remote server returned an error: (429).
Hello! I have 3 services in my company. All services work with one service account and sometime I catch error:
The remote server returned an error: (429). Stack: at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() at DD.ProjectApproval.Model.SPListItemExtensions.GetFieldUserValueNew(ListItem item, String fieldName, ClientContext clientContext).
I read microsoft recomendations, but I undurstend about
e.WebRequestExecutor.WebRequest.UserAgent = "NONISV|Contoso|GovernanceCheck/1.0";
GovernanceCheck - Enterprice app name, Do I only have to register new app in Enterprice App or need to configure it else?
Contoso -name of Company, where I can find name in Azure?
- 0 -versions of app, where I can find versions?
And I read about "ExecuteQueryWithIncrementalRetry extension method", Is method better tnan ExecuteQueryRetry in OfficeDevPnP.Core, Version=2.24.1803.0?
Thanks!
14 answers
Sort by: Most helpful
-
-
Nerobov Andrey 96 Reputation points
2021-03-18T08:35:48.323+00:00 @Jerryzy-MSFT thanks. Do I have to register the app in Azure AD or it optional? I read
-
Jerryzy 10,571 Reputation points
2021-03-18T08:41:06.75+00:00 This is optional, if you want to use App-Only credential for avoiding MFA issue, then it's suggest to register Azure AD App.
-
Nerobov Andrey 96 Reputation points
2021-03-18T08:46:30.15+00:00 @Jerryzy-MSFT thank you, I'll try and write later