Skip to main content
The First Step
Oct 19, 2020 11:43 AM UTC
Question

"errorCode":"SUB-522" "message":"WebHook responds with incorrect HTTP status. HTTP status is 500" "status":"500"

While creating webhook from salesforce apex callout or from postman. I am getting same error everytime.

{

"eventFilters": [

"/restapi/v1.0/account/~/extension/~/message-store?type=SMS&direction=Inbound"

],

"deliveryMode": {

"transportType": "WebHook",

"address": "https://aabidlwc-developer-edition.ap16.force.com/services/apexrest/ringcentralwebhook"

}

}


Please help me, I'm trouble with this.

    2 replies

    PhongVu
    Community Manager
    Community Manager
    Oct 20, 2020 2:39 PM UTC

    Where and how do you handle the validationToken?

    Please read this dev guide to learn more how to useRingCentral WebHooks notification.

    The First Step
    Oct 21, 2020 4:23 AM UTC

    I' sending the following parameter in header & body, If I'm wrong please correct me: -

    In header

    Accept : application/json

    Authorization : Bearer MyAccessToken

    Content-Type : application/json

    In Body

    Json Data =>

    {

    "eventFilters": [

    "/restapi/v1.0/account/~/extension/~/message-store?type=SMS&direction=Inbound"

    ],

    "deliveryMode": {

    "transportType": "WebHook",

    "address": "https://aabidlwc-developer-edition.ap16.force.com/services/apexrest/test/v1"

    }

    }


    but it give me 500 error, if I miss something or doing any mistake please correct me.

    Thank you