Data Action error - "code": "internal.server.error",

Hi there,

I am trying to call a custom API from Genesys Cloud .
Get Jason request as below

{
"requestUrlTemplate": "https://api.dev.XXXXXXXX",
"requestType": "GET",
"headers": {
"content-type": "application/json"
},
"requestTemplate": "${input.rawRequest}"
}

Error response i am getting is

{
"message": "The server encountered an unexpected condition which prevented it from fulfilling the request.",
"code": "internal.server.error",
"status": 500,
"messageParams": {},
"contextId": "2bfe3d63-e2db-4a79-b702-5167724ab43c",
"details": [
{
"errorCode": "ACTION.REMOTE_ENDPOINT"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: \n {\n "error": {\n "status": "500",\n "code": "500",\n "message": "FailedToResolveVariable",\n "userMessage": "Internal Server Error :FailedToResolveVariable",\n "errorDetails":[{"code":"500","message":"FailedToResolveVariable"}],\n "more info": "[https://api.dev.XXXXXXXX/errors\](https://api.dev.xxxxxxxx/errors\)"\n }\n}\n [2bfe3d63-e2db-4a79-b702-5167724ab43c]",
"code": "INTERNAL_SERVER_ERROR",
"status": 500,
"messageParams": {},
"details": [],
"errors": []
}
]
}

Can some one please advice.

The remote endpooint returned a 500 https status code, which means "Internal Server Error". Along with returning the text
FailedToResolveVariable

You would need to take this up with whoever supports that custom API. My other suggestion is to work through using the API in a tool like postman to make sure you know exactly what you want the data action to do.

--Jason

was able to fix it. thanks for responding

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.