Skip to main content

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.

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.


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!


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


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?


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>



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!


Awesome thanks a ton!


Hi

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


Is there an ETA on this being fixed?


Webhooks notification is working again in sandbox environment!

My apologies for any inconvenience!


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


Reply