question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug report: Unable to create the appcatalog

See original GitHub issue

Thank you for reporting an issue. Please complete the below template to ensure we have the necessary details to assist you.

Description

Provide a short description of the issue you are facing

I am using CLI for Microsoft 365 v3.5.0 and wanted to create a new app catalog using CLI script as a part of my development work. I used this command with valid parameters m365 spo tenant appcatalog add

Steps to reproduce

Provide the steps you have taken so that we can reproduce the error open command prompt and write m365 login --authType password --userName $Username --password $Password set the admin url m365 spo set -u $Url to create the app catalog, I used this command m365 spo tenant appcatalog add --url $url --owner $owner -z 10

Expected result

Provide a description of what you expect to happen App catalog created with no error

Actual result

Provide a description of what actually happens, please provide any screenshots or error logs here

got this error (node:32788) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined at SpoTenantAppCatalogUrlGetCommand.getUsedCommandName (C:\Users\PandeyB\AppData\Roaming\npm\node_modules\@pnp\cli-microsoft365\dist\Command.js:47:37) at SpoTenantAppCatalogUrlGetCommand.initAction (C:\Users\PandeyB\AppData\Roaming\npm\node_modules\@pnp\cli-microsoft365\dist\Command.js:219:24) at Auth_1.default.restoreAuth.then (C:\Users\PandeyB\AppData\Roaming\npm\node_modules\@pnp\cli-microsoft365\dist\Command.js:59:18) at process._tickCallback (internal/process/next_tick.js:68:7) (node:32788) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:32788) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

image

Environment

Provide details of the environment in which this issue was discovered, please include the operating system, shell and version of CLI used (m365 version), for example, “MacOS Catalina, bash, 2.0.0

CLI for Microsoft 365 v3.5.0, Platform Windows Node Version V10.22.1 image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
waldekmastykarzcommented, Feb 2, 2021

Interesting, so perhaps something has changed in the underlying API. Let us investigate the issue and get back to you as soon as we know more, ok? Thanks again for all the details, it’s very helpful 👍

0reactions
waldekmastykarzcommented, Feb 3, 2021

We’ve just released a preview version 3.6 with the issue fixed. Once again, sorry for the trouble and thank you for reporting the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create app catalog site - Microsoft Community Hub
I get this error message when I try to create an App Catalog Site from the SharePoint Admin center Sorry, something went wrong...
Read more >
[BUG] Add-PnPApp fails with a ResourceNotFound exception.
After creating a new team site and creating the site app catalog, it's not possible to add an app package. When checking the...
Read more >
SharePoint Online: How to Create Site Collection App Catalog?
I am having the same problem… I was able to create the site collection app catalog, I can see it in the list,...
Read more >
Solve the 'Deployment failed' error in the app catalog
Select the app catalog site and click on Owners/Change admins and add yourself to the administrators. Deployment failed error. Go back to the...
Read more >
Bug Reporting - Apple Developer
This helps narrow down the specific bug you're dealing with and is one of the easiest ways for us to identify the problem....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found