News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
SUB-522 Error with Webhook Subscription
Tags: webhooks
Oct 18, 2022 at 3:49pm   •   1 replies  •  0 likes
Vagelis Hristidis

We always encounter this error when trying to make a webhook subscription with telephony sessions:

{"errorCode":"SUB-522","message":"WebHook responds with incorrect HTTP status. HTTP status is 400","errors":[{"errorCode":"SUB-522","message":"WebHook responds with incorrect HTTP status. HTTP status is 400","status":"400"}],"status":"400"}

with request:

{"eventFilters":["/restapi/v1.0/account/~/telephony/sessions"],"deliveryMode":{"transportType":"WebHook","address":".../chatapi/webhooks/ringcentralphonecall"}}


The strangest part is that our webhook code doesn't even seem to trigger. We also return the validation token, and we verified the address works using cURL. Could this be an issue with our account?


screen-shot-2022-10-18-at-34347-pm.png


screen-shot-2022-10-18-at-33742-pm.png


Notes:

- We are in sandbox

- App permissions: Call Control, Read Accounts, Ring Out, SMS, Webhook Subscriptions

1 Answer
answered on Oct 19, 2022 at 3:31pm  

It should not be your account. But I think it is your environment.

Did you try the example in this quick start?


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us