Hi everyone,
We are developing a REST connector in order to integrate a custom ticketing system for the ARS application management. For the development we are following the documentation REST Connector Guide and Developers Handbook to complete all necessary steps for the integration. We have configurated all the necessary connection parameters (ConnectionJSON, TicketStatusJSON and CreateTicketJSON) and also the associated security system, endpoint and WSretry job for the ticket creation.
However every time we submit a new access request by generating a new task executed by the WSretry job we have the following error:
Below the related code of the connection parameters.
Connection JSON
{
"authentications": {
"acctAuth": {
"authType": "BasicWithAccessToken",
"url": "https://<domain name>/auth/",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {"Accept": "application/json",
"contentType": "application/x-www-form-urlencoded"
},
"properties": {"userName": "<insert here username>","password": "<insert here password>"},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "ExpiredAuthenticationToken",
"retryFailureStatusCode": [403,401,500],
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"Authentication_MissingOrMalformed",
"Authentication_ExpiredToken"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer <insert here accesstoken>"
}
}
}
Ticket creation
{
"call": [
{
"name": "AddTicket",
"connection": "acctAuth",
"url": "https://<domain name>/addTicket",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"Authorization": "${access_token}",
"contentType": "application/json"
},
"httpContentType": "application/json",
"ticketidPath": "ticket.id",
"unsuccessResponses": {
"message": "Failed"
}
}
]
}
Ticket status
{
"call": [
{
"name": "GetStatusTicket",
"connection": "userAuth",
"url": "https://<domain name>/getStatusTicket/${ticketID}",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}",
"contentType": "application/json"
},
"httpContentType": "application/json",
"ticketStatusPath": "result[0].state",
"ticketStatusValue": [
"Open",
"OPEN",
"open"
],
"successResponses": [
{}
]
}
]
}
Do you have any suggestions to fix this problem?