pnp / PnP-PowerShell

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

Measure-PnPResponseTime returns Warnings: https://<siteurl>: 401 #2548

Open Pofile opened 4 years ago

Pofile commented 4 years ago

Reporting an Issue or Missing Feature

Reporting an Issue

Expected behavior

The Cmdlet Measure-PnPResponseTime shows statistics without any warnings.

Actual behavior

When running Measure-PnPResponseTime it returns a warning for every site request, but it still returns statistics:

WARNING: Reply from https://.sharepoint.com/sitespages/home.aspx: 401 ........ WARNING: Reply from https://.sharepoint.com/sitespages/home.aspx: 401

Mode : RoundTrip Average : 73,95 Max : 125 Min : 63 StandardDeviation : 13,34 TruncatedAverage : 70,9375 Histogram : {[25, 0], [50, 0], [75, 16], [100, 6]...} Count : 20

Steps to reproduce behavior

For authenication I am using a O365 account assigned as Site Collection Administrator and SharePoint Administrator role.

Execute the following command in Windows PowerShell (admin)

  1. Connect-PnPonline -url https://.sharepoint.com -useweblogin
  2. Measure-PnPResponseTime

NB. measure-PnPweb or measure-PnPlist runs without any error.

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

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

SharePointPnPPowerShellOnline 3.18.2002.0

How did you install the PnP-PowerShell Cmdlets?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

gbminnock commented 4 years ago

I have the same issue.