Skip to content

Add user-agent string to all web requests to avoid SPO throttling #52

@waldekmastykarz

Description

@waldekmastykarz

As described in https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online#how-to-decorate-your-http-traffic-to-avoid-throttling: to avoid throttling, all solutions should specify a relevant user-agent string.

Add the following user-agent string to all web requests in the CLI:

NONISV|SharePointPnP|Office365CLI/_version_

where version should be retrieved from package.json so that it's dynamically updated in all requests.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions