httpget function is working with the credentials provided. But inbuil

httpget function is working with the credentials provided.

But inbuilt httpquery function is throwing error. Is there any mistake in code or passing parameters?
please advise how to test third party credentials store.

We have also created third party credentials, but it seems to be not reading the keys.

a!formLayout(
label :"Rest API Data",
firstColumnContents :{
a!paragraphField(
value :
a!httpQuery(

url:"http://SERVER_NAME/locations",

method :"GET",
basicAuthenticationCredentials : a!httpAuthenticationBasic(
username : a!scsField(
externalSystemKey : "externalSystemKey",
fieldKey : "usernameKey" ),
password : a!scsField(
externalSystemKey : "ExternalSystemKey",
fieldKey : "passwordKey" ) )

),
readOnly :true)})

Error-:[success:false,result:,error:[code:[category:0,namespace:1,detail:0],title:HT...

OriginalPostID-143129

OriginalPostID-143129

  Discussion posts and replies are publicly visible

Parents
  • To same account,We are able to connect by httpget function with credentials provided.Please find below application server error log.
    ERROR com.appian.integration.httpclient.function.HttpFunction - ConnectorRuntimeException [title=HTTP error connecting to http://SERVER_NAME/locations, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 401 Unauthorized].
Reply
  • To same account,We are able to connect by httpget function with credentials provided.Please find below application server error log.
    ERROR com.appian.integration.httpclient.function.HttpFunction - ConnectorRuntimeException [title=HTTP error connecting to http://SERVER_NAME/locations, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 401 Unauthorized].
Children
No Data