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
Webhook Subscription Not Working.
Tags: rest api
Feb 15, 2020 at 7:46am   •   11 replies  •  0 likes
Chady Boutros

Hi, i have implemented webhooks successfully and everything was working fine. I could subscribe, remove and fetch the current subscriptions from my api. This has been working for over 3 months. Now when i go to subscribe i get this error response.

<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /restapi/v1.0/subscription. Reason:
<pre>    org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: com.google.common.net.HostAndPort.getHost()Ljava/lang/String;</pre></p>
<hr />
</body>
</html>


I don't understand what to fix and i'm at a loss of where to dig because this was all working before.

Im using the php backend framework and my code looks like this.

$params = array(
                'eventFilters' => array(
                    '/restapi/v1.0/account/~/extension/~/message-store/instant?type=SMS',
                    '/restapi/v1.0/account/~/extension/~/telephony/sessions'
                 ),
                'deliveryMode' => array(
                    'transportType' => "WebHook",
                    'address' => $address
                ));
$resp = $platform->post('/subscription', $params);


Any help would be greatly appreciated, thank you for your time.

11 Answers
answered on Jun 8, 2021 at 2:19pm  

Any update on this? Im working with sandbox, successfully created a subscription, but its not getting triggered by inbound sms?


 0
answered on Oct 1, 2020 at 10:58am  

Can we get update on this please? Incoming SMS is not triggering a webhook in Sandbox


 1
answered on Feb 16, 2020 at 2:14pm  

I can fetch the current subscriptions .. this is what i get back.

Fetching Subscriptions REPSONSE ==>{"uri":"https://platform.devtest.ringcentral.com/restapi/v1.0/subscription","records":[]}

This was all working a couple weeks ago. i Was getting all the events when a call would come in and call would end and when an SMS would come in as well. Yes thats the raw response im getting from the exception response.

<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /restapi/v1.0/subscription. Reason:
<pre>    org.springframework.web.util.NestedServletException: Handler dispatch failed; nested except
<hr />
</body>
</html>



 0
answered on Feb 17, 2020 at 11:51am  

Webhooks notification is working again in sandbox environment!

My apologies for any inconvenience!


 1
answered on Feb 17, 2020 at 4:18am  

Is there an ETA on this being fixed?


 1
answered on Feb 16, 2020 at 9:36pm  

Hi

We are having same issue. Please let us know when fixed.


 0
answered on Feb 16, 2020 at 1:57pm  

Can you make a GET request to this endpoint (/restapi/v1.0/subscription) to see if you are having too many subscriptions? The maximum number of subscriptions per account is 20. Not sure if this is the cause but it's worth to check time to time too.

Also, if it fails after you subscribe for the notification, what exception do you get from within the catch {}? was that the message you posted in your original question?


 0
answered on Feb 16, 2020 at 1:10pm  

the url we are using for the $address = https://dreamlandvr.info/handleIncomingWebhook and when hitting this with Test POST's i get


 0
answered on Feb 16, 2020 at 11:47am  

Thanks for the response, here is an image of the controller i am using. I am using Laravel framework.

I don't understand how this was working previously tho? Ill try out the quick test too. Thanks!


 0
answered on Feb 16, 2020 at 10:23am  

Can you post the code where you handle the validation-token header? And what web framework are you using in your PHP?

You can also quickly test your account with the quick start code to see if it works with your current app and user settings.


 0
answered on Feb 16, 2020 at 4:26pm  

Awesome thanks a ton!


 0
answered on Feb 16, 2020 at 2:28pm  

Oh, based on what you just posted, I see that you are running your app on sandbox and I just make a quick test and found that webhook notification is not working on sandbox right now.

For now you don't need to change or fix anything from your side. Stay tuned for our investigation and I will let you know when it's back to normal.

Sorry for any inconvenience!


 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