The remote server returned an error: (429).

Nerobov Andrey 96 Reputation points
2021-03-17T14:03:04.743+00:00

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?

  1. 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!
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,740 questions
0 comments No comments
{count} votes

14 answers

Sort by: Most helpful
  1. Jerryzy 10,571 Reputation points
    2021-03-18T08:27:40.447+00:00

    e.WebRequestExecutor.WebRequest.UserAgent = "NONISV|digdes|yourapp/1.0";

    0 comments No comments

  2. 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
    79088-image.png

    0 comments No comments

  3. Jerryzy 10,571 Reputation points
    2021-03-18T08:41:06.75+00:00

    @Nerobov Andrey ,

    This is optional, if you want to use App-Only credential for avoiding MFA issue, then it's suggest to register Azure AD App.

    0 comments No comments

  4. Nerobov Andrey 96 Reputation points
    2021-03-18T08:46:30.15+00:00

    @Jerryzy-MSFT thank you, I'll try and write later


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.