Skip to main content
Question

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

  • October 19, 2020
  • 2 replies
  • 1162 views

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
Forum|alt.badge.img
  • Community Manager
  • October 20, 2020

Where and how do you handle the validationToken?

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


  • Author
  • New Participant
  • October 21, 2020

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