pnp/cli-microsoft365

Even I am facing issue can't upload sppkg file of 11mb to sitecollection app catalog

Opened this issue · 1 comments

          Iam facing the same issue. How to solve this problem.

m365 spo app add -p $(sppkg file) --overwrite --scope sitecollection --appCatalogUrl $(site url)

Error: Request body larger than maxBodyLength limit

sppkg file is 11mb
m365 cli v4.2.0
node v16.3.0
should i raise as new issue?

Originally posted by @suren-ms in #2120 (comment)

Hi @maheshpalle

Few questions:

  • Is there a reason why you are using an old version of Cli (v4.2.0)? Do you have the same issue in our latest release?
  • Is this something that worked before, or did you encounter this recently?

Looking at the code, there might be a possibility that this doesn't work for large files. We might have to implement uploading in batches.