question

bryan-bojorque avatar image
bryan-bojorque asked ·

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 
topic-default
1 |1000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
benjamin-dean avatar image
benjamin-dean answered ·
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 Share
1 |1000 characters needed characters left characters exceeded

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

We are using lets encrypt ssl...
0 Likes 0 · ·
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 · ·
TLS / SSL only needs to be enabled in production. For development purposes, TLS is not necessary.
0 Likes 0 · ·
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 · ·
No it works properly we can also receive notifications.
1 Like 1 · ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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