question

bryan-bojorque avatar image
bryan-bojorque asked bryan-bojorque commented

SUB-524 Error?

When creating a webhook for subscription


Expected HTTP Error: Client error: 'POST https://platform.devtest.ringcentral.com/restapi/v1.0/subscription' resulted in a '400 Bad Request' response: { "errorCode" : "SUB-524", "message" : "HTTPS certificate is not valid", "errors" : [ { "errorCode" : "SUB-524 (truncated...) (from backend) at URL https://platform.devtest.ringcentral.com/restapi/v1.0/subscription

sdk
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

benjamin-dean avatar image
benjamin-dean answered bryan-bojorque commented
This means that the Push Notification address you have provided (either or both):

1. Does not have a valid SSL certificate chain
2. Does not support TLS v1.2
11 comments
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

bryan-bojorque avatar image bryan-bojorque commented ·
We believe that we have the requirements server side that is. But I guess its because we are using free ssl it might be the issue. We'll let you know when we test it in a paid ssl.
1 Like 1 ·
bryan-bojorque avatar image bryan-bojorque commented ·
No it works properly we can also receive notifications.
1 Like 1 ·
bryan-bojorque avatar image bryan-bojorque commented ·
We are using lets encrypt ssl...
0 Likes 0 ·
bryan-bojorque avatar image bryan-bojorque commented ·
Create a Webhook URL

To create a webhook, you'll need webserver that listens on a specif URL for events, known as the webhook URL, that you will configure when creating the subscription. The webhook URL service must meet the following requirements:

  1. is available on the Internet
  2. has a TLS / SSL enabled*
  3. can respond within 1000 milliseconds
  4. will respond with Validation-Token header on subscription

TLS / SSL only needs to be enabled in production. For development purposes, TLS is not necessary.

For development purposes, you can use localhost along with a service like ngrok.

0 Likes 0 ·
bryan-bojorque avatar image bryan-bojorque commented ·
TLS / SSL only needs to be enabled in production. For development purposes, TLS is not necessary.
0 Likes 0 ·
Show more comments

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys