Getting error "Could not find an active connection to a ServiceNow instance"

Jim J1
Tera Guru

Getting error Could not find an active connection to a ServiceNow instance

snc ui-component project --name @myorg/now-experience-dashboard --description ‘My first NXF component built at CreatorCon’

Could not find an active connection to a ServiceNow instance. 

Configuration info

snc version{

  •    "extensions": {
  •       "ui-component": "20.0.0"
  •    },
  •    "snc": "1.1.0"
  • }

node -v

  • v12.22.8

 

 

1 ACCEPTED SOLUTION

Ct111
Giga Sage

Exact same issue was faced by another user.

https://community.servicenow.com/community?id=community_question&sys_id=0b178a861b48b85017d162c4bd4bcb80

Plz chk the workaround done by him , and see if it helps 

 

Mark my Answer as Correct and Helpful if it helps

 

 

View solution in original post

3 REPLIES 3

Ct111
Giga Sage

Exact same issue was faced by another user.

https://community.servicenow.com/community?id=community_question&sys_id=0b178a861b48b85017d162c4bd4bcb80

Plz chk the workaround done by him , and see if it helps 

 

Mark my Answer as Correct and Helpful if it helps

 

 

Yep look like you need a specific user other than default. I created another user using the 

snc configure profile set [--profile profile-name] command. 
Next I add the user to the command with the --profile parm and it worked

thanks

Hi Jim , If my comment helped you in achieving your objective. Can you Mark my Answer as CORRECT