pnp / PnP-PowerShell

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

Add-PnPApp throws error "The request message was already sent. Cannot send the same request message multiple times." #2421

Open djsladi opened 4 years ago

djsladi commented 4 years ago

Reporting an Issue or Missing Feature

Add-PnPApp has started to fail in our deployment pipelines and publishing apps manually. It throws error message: "The request message was already sent. Cannot send the same request message multiple times."

Expected behavior

Sppkg-package should uploaded, overwrited and updated on the tenant.

Actual behavior

image

Steps to reproduce behavior

Connect-PnPOnline -CertificatePath c:\users\xxx -Tenant xxx.onmicrosoft.com -ClientId xxx -Url xxx Add-PnPApp -Path .\xxx.sppkg -overwrite -publish

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

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

3.16.1912.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.

djsladi commented 4 years ago

Apparently this is cause of too high app version number: image

I changed the app version number to 1.0.1.77 and the Add-PnPApp is working as usual. I think the actual bug is that the error message is not getting through.

MDami79 commented 4 years ago

@djsladi Running into a similar issue. Where did you change the app version number?

halshing commented 4 years ago

@djsladi ran into this same issue because i was appending the build number to the version number. removing the build number worked for me.