Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Getting an error when trying to use ui-component to set up the project.

Ruth Rozental
Tera Contributor

I have a valid proflie that have connected successfuly 

However once running below command to create myproject I am getting below error:

 

Command:

snc ui-component project --name @cli/ui-builder --description 'create a counter compenet for IT workspace.'

Error:

Response code 401 (Unauthorized): Required to provide Auth information

 I am an admin user in the environment I am trying to access to .

Can you please helpl to undentory the reason to this error?

1 REPLY 1

Hi,

Thank you @rick5050 

After chcking all above points and found that all are fine - nothing to fix on that.

I tryied a dierent approach as sggested in below post:

view solution 

I followed the steps mentioned there - created a named profile , then connected to that Env after that I could create my project successfuly.

Although the original error that I got was differnt than described there - 

It worked for me also.