Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Data Actions - WebService - "ACTION.REMOTE_ENDPOINT" error

    Posted 02-23-2023 08:25
    Edited by Maragatham Sadaiyandi 02-23-2023 10:20
    No replies, thread closed.

    Hi Team,

    We are getting below error message from Web Service in Data Action. However getting proper json response in Postman.

    {
    "message": "The request could not be understood by the server due to malformed syntax.",
    "code": "bad.request",
    "status": 400,
    "messageParams": {},
    "contextId": "xxx",
    "details": [
    {
    "errorCode": "ACTION.REMOTE_ENDPOINT"
    }
    ],
    "errors": [
    {
    "message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {\r\n "sessionId": "XXX",\r\n "transactionId": "XXX",\r\n "message": "XXX",\r\n "errorCode": "XXX"\r\n} [xxx]",
    "code": "BAD_REQUEST",
    "status": 400,
    "messageParams": {},
    "details": [],
    "errors": []
    }
    ]
    }
    We tried adding Transfer-Encoding as buffered in header also.But still same issue.


    #Integrations

    ------------------------------
    Maragatham Sadaiyandi
    Accenture Solutions Private Limited
    ------------------------------



  • 2.  RE: Data Actions - WebService - "ACTION.REMOTE_ENDPOINT" error

    Posted 02-23-2023 09:34
    No replies, thread closed.

    We got the same error when we were playing with the chat integration in the data action section. Our error was occurring because we have SSO enabled and that particular feature needed username/password to work. Maybe this is something to look into for your org too?



    ------------------------------
    Dawn Weston
    AvalonBay Communities, Inc.
    ------------------------------



  • 3.  RE: Data Actions - WebService - "ACTION.REMOTE_ENDPOINT" error

    Posted 02-23-2023 10:20
    No replies, thread closed.

    The above error occurs only when we test the same Data action for Invalid Input. However when we provide valid input we are getting success.

    eg:

    valid input : Surname : Maggie - API Success

    Invalid input : Surname : Magge - API Fails (returning above error while testing in Data Action)

    But while testing in Postman returns as below in case of InvalidInput

    {

     "sessionId": "XXX",

     "transactionId": "XXX",

     "message": "XXX",

     "errorCode": "XXX"

    }



    ------------------------------
    Maragatham Sadaiyandi
    Accenture Solutions Private Limited
    ------------------------------



  • 4.  RE: Data Actions - WebService - "ACTION.REMOTE_ENDPOINT" error

    Posted 02-24-2023 08:29
    No replies, thread closed.

    a remote endpoint error is exactly that; it's an error that is returned from the resource the data action is trying to communicate with.  In your case, it appears that the remotes service is returning a 400 when you provide an invalid query; I'd expect it to return a 404 if it's simply not able to find the requested resource, but that's really up to the remote API provider to manage their error syntax.  

    Either way, the data action is doing what's expected, as it's successfully connecting to the remote endpoint, providing the payload you've configured, and returning the error that's received as a response.  The fact that it's returning a success when you provide it with valid data further reinforces that the data action is doing what it's supposed to do, and that the remote endpoint is returning the error.



    ------------------------------
    Richard Schott
    Genesys - Employees
    ------------------------------