Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/20/2024 07:06 AM - edited 08/20/2024 07:24 AM
Hello, I am facing isssue with create account and getting error message as "{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}]}" while create account task executes. Below are the JSONs.
Connection JSON:
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "xxxxxxx",
"httpMethod": "POST",
"httpHeaders": {
"Accept": "*/*",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpParams": {
"username": "xxxx",
"password": "xxxxx"
},
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"FAILURE",
"INVALID_SESSION_ID"
],
"retryFailureStatusCode": [
403,
401,
500
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "token",
"tokenType": "",
"accessToken": "abcd",
"successResponses": {
"statusCode": [
200,
201
]
}
}
}
}
Create account JSON:
08/20/2024 09:50 AM
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "xxxxxxx",
"httpMethod": "POST",
"httpHeaders": {
"Accept": "*/*",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpParams": {
"username": "xxxx",
"password": "xxxxx"
},
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"FAILURE",
"INVALID_SESSION_ID"
],
"retryFailureStatusCode": [
403,
401,
500
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "token",
"tokenType": "Bearer",
"accessToken": "abcd",
"successResponses": {
"statusCode": [
200,
201
]
}
}
}
}
08/21/2024 03:00 AM - edited 08/21/2024 03:02 AM
Hi @rushikeshvartak I tried above connection JSON, but getting error : {"headers":null,"message":{"message":"Auth Config Token claim is required in OAuth2 access token"},"statusCode":400,"description":null,"status":"Failed"}}
08/21/2024 05:59 AM
Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️
08/21/2024 06:12 AM
Hi @rushikeshvartak PFA postman and curl command screen shots.
08/21/2024 06:15 AM - edited 08/21/2024 06:16 AM
Please add inline images and curl url in text [You can edit previous message]
08/21/2024 06:50 AM
Hi @rushikeshvartak,
Create Account - Curl:
----------------------
curl --location 'https://xxxxxxxxx/v3/wlm/queues/2/workitems' \
--header 'Content-Type: application/json' \
--header 'X-Authorization: eyJhbGcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxBxDRSncdShbCg7UTN3EthULuCQ_DfayDxW3JMnw' \
--data-raw '{
"workItems": [
{
"json": {
"Customer Name": "xxxx",
"Invoice Id": "xxxx",
"Amount": "1xx0",
"email": "xxxx.com",
"Invoice Date": "20xxxx8:48Z",
"applicationName" : "xxxx",
"taskType":"create",
"taskId":"1234"
}
}
]
}'
Token Curl:
----------
curl --location 'https://xxxxxx/v1/authentication' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "xxxxxx",
"password": "xxxxx"
}'
08/21/2024 06:57 AM
08/22/2024 11:18 PM
Hi @rushikeshvartak Thank you for the update. Please let me know, what should we do in this case.? suggest us how to resolve this issue.?
08/23/2024 07:49 AM
Raise idea ticket for enhancement or achieve using jar connector
08/26/2024 04:18 AM
Hi @rushikeshvartak Please let me know, how can I create jar connector.? how to do this process.? I am not aware of this process.?
08/26/2024 05:58 AM
08/21/2024 03:48 AM
hello Rajesh
specify X-Authorization as authheader in connection json and in the create account json use the below
"X-Authorization": "${access_token}"
08/21/2024 04:21 AM
Hi @Vedanth-BK I did changes in connetion JSON and create account JSON as you suggested, but still getting error "[{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}]},"
Attached error logs:
08/23/2024 08:00 AM
08/28/2024 05:23 AM
Hello @Vedanth-BK,
Attached required input details.
08/28/2024 05:39 AM
Hello @Rajesh_CH
Please try with the below jsons and let me know if you face any issues.
08/28/2024 07:33 AM
Create Account:
{
"accountIdPath": "call1.message.list.id",
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": "xxxxxxx",
"httpMethod": "POST",
"httpParams": "{\"workItems\": [{\"json\": {\"Customer Name\": \"Test IntraFi\",\"Invoice Id\": \"INV12345\",\"Amount\":\"200\",\"email\": \"testuser@pop.com\",\"Invoice Date\": \"2024-08-20T00:20:50Z\",\"applicationName\":\"Test IntraFi\",\"taskType\":\"create\",\"taskId\": \"12345\"}}]}",
"httpHeaders": {
"X-Authorization": "XXXXXXX Hardcode the token you get from postman and try it XXXXXXX",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
204,
205
]
},
"unsuccessResponses": {
"statusCode": [
400,
403,
401,
404,
409,
500,
501
]
}
}
Connection JSON:
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "xxxxxxxxxxx/v1/authentication",
"httpMethod": "POST",
"httpHeaders": {
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpParams": {},
"properties": {
"userName": "username",
"password": "password"
},
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"FAILURE",
"INVALID_SESSION_ID"
],
"retryFailureStatusCode": [
401
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"authHeaderName": "X-Authorization",
"tokenResponsePath": "token",
"tokenType": "",
"accessToken": "abcd"
}
}
}