pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Get-pnptenantsite gets throttled[BUG] #2836

Open msnaveen opened 4 years ago

msnaveen commented 4 years ago

If you have a question and are not reporting a bug, please go to:

https://github.com/pnp/pnp-powershell/discussions

Notice

Many bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:

  1. Are you using Apply-PnPProvisioningTemplate or Get-PnPProvisioningTemplate? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/pnp/PnP-Sites-Core/issues.
  2. Is the issue related to the cmdlet itself, its parameters, the syntax, or do you suspect it is the code of the cmdlet that is causing the issue? Then please continue reporting the issue in this repo.
  3. If you think that the functionality might be related to the underlying libraries that the cmdlet is calling (We realize that might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/pnp/PnP-PowerShell/tree/master/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/pnp/PnP-Sites-Core/issues

Reporting an Issue or Missing Feature

Please confirm what it is that your reporting

Expected behavior

Please describe what output you expect to see from PnP-PowerShell Cmdlets

Actual behavior

Please describe what you see instead. Please provide samples of HTML output or screenshots

Steps to reproduce behavior

Please include complete code samples in-line or linked from gists

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

(you can retrieve this by executing Get-Module -Name sharepointpnppowershell* -ListAvailable)

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version Name ExportedCommands


Binary 3.24.20... SharePointPnPPowerShellOnline {Add-PnPAlert, Add-PnPApp, Add-PnPApplicationCustomizer, Add-PnPClientSidePage...} Binary 3.23.20... SharePointPnPPowerShellOnline {Add-PnPAlert, Add-PnPApp, Add-PnPApplicationCustomizer, Add-PnPClientSidePage...} Binary 3.22.20... SharePointPnPPowerShellOnline {Add-PnPAlert, Add-PnPApp, Add-PnPApplicationCustomizer, Add-PnPClientSidePage...} Binary 3.21.20... SharePointPnPPowerShellOnline {Add-PnPAlert, Add-PnPApp, Add-PnPApplicationCustomizer, Add-PnPClientSidePage...} Binary 3.19.20... SharePointPnPPowerShellOnline {Add-PnPAlert, Add-PnPApp, Add-PnPApplicationCustomizer, Add-PnPClientSidePage...}

How did you install the PnP-PowerShell Cmdlets?

I am not sure what happened to this https://github.com/SharePoint/sp-dev-docs/issues/3765

But i am working on a project where i am creating a dashboard eventually. I have 4K sites and I am getting throttled and i am just worried as my end product has to query 300K sites 👍

image

Fiddler Header

POST /_vti_bin/client.svc/ProcessQuery HTTP/1.1 Accept-Encoding: gzip, deflate User-Agent: NONISV|SharePointPnP|PnPPS/3.24.2008.0 RESPONSE JSON=429

I call the GRAPH API to get the URL list and then i run the Get-PnPTenantSite -url $urls -ErrorAction SilentlyContinue

Why should a PnPTenantSite get throttled ?

What are the alternate options i have here? I am still wondering if I can change the user-Agent, as i am not using web/rest Methods.