Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

CLI setup command give 401 error with incorrect PAT #1281

@andrebriggs

Description

@andrebriggs

Describe the bug:

? Enter organization name
 abrig
? Enter project name
 BedrockRocks
? Enter your AzDO personal access token
 ****************************************************
? Would you like to create a sample application repository? Yes
? Do you want to create a service principal? Yes
info:    attempting to login to az command line
info:    Successfully login to az command line
? Select one of the subscriptions
REDACTED
info:    attempting to create service principal with az command line
info:    Successfully created service principal with az command line
? Enter Azure Container Register Name. The registry name must be unique within Azure
 andrebriggs
azdo_org_name=abrig
azdo_project_name=BedrockRocks
azdo_pat=*********
az_create_app=true
az_create_sp=true
az_sp_id=REDACTED
az_sp_password=********
az_sp_tenant=REDACTED
az_subscription_id=REDACTED
az_acr_name=andrebriggs
az_storage_account_name=
az_storage_table=
workspace: quick-start-env
Project Created: no
High Level Definition Repo Scaffolded: no
Helm Repo Scaffolded: no
Sample App Repo Scaffolded: no
Manifest Repo Scaffolded: no
HLD to Manifest Pipeline Created: no
Service Principal Created: yes
Resource Group Created: no
Lifecycle Pipeline Created: no
Build Pipeline Created: no
ACR Created: no
Storage Account Created: no
Storage Table Created: no
Error: Error: Failed request: (401)
Status: Incomplete
error:   Error: Failed request: (401)

The issue is rooted in webAPI.getCoreApi() call in setup.ts.

To Reproduce:
Run spk setup with an invalid or incorrect PAT

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions