Legacy Dev Forum Posts

 View Only

Sign Up

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

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

    Posted 06-05-2025 18:45

    Gcloud | 2024-02-18 06:02:50 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.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\"\n }\n}\n [2bfe3d63-e2db-4a79-b702-5167724ab43c]", "code": "INTERNAL_SERVER_ERROR", "status": 500, "messageParams": {}, "details": [], "errors": [] } ] }

    Can some one please advice.


    Jason_Mathison | 2024-02-18 20:49:39 UTC | #2

    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


    Gcloud | 2024-02-19 14:59:43 UTC | #3

    was able to fix it. thanks for responding


    system | 2024-03-21 14:59:55 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 24710