Legacy Dev Forum Posts

 View Only

Sign Up

Calling custom API from Genesys Cloud - Error- "code": "internal.server.error",

  • 1.  Calling custom API from Genesys Cloud - Error- "code": "internal.server.error",

    Posted 06-05-2025 18:29

    Gcloud | 2024-02-18 05:59:58 UTC | #1

    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.REMOTEENDPOINT" } ], "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\"\n }\n}\n [2bfe3d63-e2db-4a79-b702-5167724ab43c]", "code": "INTERNALSERVER_ERROR", "status": 500, "messageParams": {}, "details": [], "errors": [] } ] }

    Can some one please advice.


    SimonBrown | 2024-02-19 14:36:43 UTC | #2

    Suggests the input to the API is missing a variable, maybe spelt incorrectly, case Sensitive? Specific message back stating FailedToResolveVariable.

    I would check all the required input variables are present, correct case, and type as a start point.


    Gcloud | 2024-02-19 15:02:30 UTC | #3

    was able to fix issue. thx for responding


    system | 2024-03-20 15:03:10 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 24709