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.

Cannot fetch cli metadata. HTTP 403, Error connecting to instance.

josteinenge
Kilo Guru

When setting up custom component running,

 

snc configure profile set

 

i run into a problem, basic login method gives me (This version is Washington DC)

 

> Host [https://*******.service-now.com]:
> Login method [Basic]: Basic
> Username [****@*****.**]:
> Password [******]: 
> Default output format [JSON]: JSON
Connection to https://******.service-now.com successful. 
HTTP 403, Error connecting to instance.
Profile ***** has been saved

 

 

and login with OAuth gives me,

 

> Host [https://*******.service-now.com]:
> Login method [Basic]: OAuth
> Username [******@*****.**]:
> Password [******]: 
> Client id: **********
> Default output format [JSON]: JSON
Connection to https://*******.service-now.com successful. 
Cannot fetch cli metadata. HTTP 403, Error connecting to instance.
Unable to reach instance https://*********.service-now.com

 

 

 

In my PDI (Xanadu) i have no problem, so i suspect either CLI Metadata plugin or some kind of role is missing? Note CLI Metadata plugin is installed on both instances. And i have admin privilege in both.

 

Host [https://dev*******.service-now.com]:
> Login method [Basic]: OAuth
> Username [admin]:
> Password [******]: 
> Client id: ********
> Default output format [JSON]: JSON
Connection to https://dev******.service-now.com successful. 
Metadata retrieved successfuly from https://dev*******.service-now.com
Profile ******* has been saved

 

 

 

Does anyone know a fix or what i'm missing?

1 ACCEPTED SOLUTION

josteinenge
Kilo Guru

With CLI Metadata plugin i could not connect or deploy my ui-component, i ended up deleting the CLI Metadata plugin and try again, note i still get a red warning 

This instance does not support dynamic commands. Functionality will be limited.

 

Connection to https://xxxxxx.service-now.com successful. 
This instance does not support dynamic commands. Functionality will be limited.
Profile xxxxx has been saved

 

But it ended up running "snc ui-component deploy", and now i got my component in UI-Builder..

View solution in original post

1 REPLY 1

josteinenge
Kilo Guru

With CLI Metadata plugin i could not connect or deploy my ui-component, i ended up deleting the CLI Metadata plugin and try again, note i still get a red warning 

This instance does not support dynamic commands. Functionality will be limited.

 

Connection to https://xxxxxx.service-now.com successful. 
This instance does not support dynamic commands. Functionality will be limited.
Profile xxxxx has been saved

 

But it ended up running "snc ui-component deploy", and now i got my component in UI-Builder..