Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
8 subscribers
Views
2318 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
httpget function is working with the credentials provided. But inbuil
jasmins
over 10 years ago
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
0
jasmins
over 10 years ago
...TP error connecting to
SERVER_NAME/.../1.1
401 Unauthorized,detail:No details available]]
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chrism967
over 10 years ago
I'm trying to do this but parked it for the moment. If you work it out please do share the solution! Cheers Chris
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 10 years ago
Can you confirm that the account you are using here has proper permissions to make this connection, and that the credentials themselves are correct? Are you able to connect with any other credentials?
Please also provide your application-server.log
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jasmins
over 10 years ago
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].
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aleksi White
Appian Employee
over 10 years ago
Could you attach the full log file? If you can't due to not wanting information in that log available on forum then you can create a support case, where only Appian and your authorized support contacts will have access
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Robert Shankin
Appian Employee
over 10 years ago
@Aleksi -
This is related to case support case 410261 and AN-56349
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel