Pnp-powershell: Add-PnPApp throws error "The request message was already sent. Cannot send the same request message multiple times."

Created on 20 Dec 2019  路  4Comments  路  Source: pnp/PnP-PowerShell

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?

  • [ ] PnP PowerShell for SharePoint 2013
  • [ ] PnP PowerShell for SharePoint 2016
  • [X] PnP PowerShell for SharePoint Online

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

3.16.1912.0

How did you install the PnP-PowerShell Cmdlets?

  • [ ] MSI Installed downloaded from GitHub
  • [X] Installed through the PowerShell Gallery with Install-Module
  • [ ] Other means
Needs

Most helpful comment

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.

All 4 comments

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

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.

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

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

Was this page helpful?
0 / 5 - 0 ratings