question

Chady Boutros avatar image
Chady Boutros asked AJ Botello answered

Webhook Subscription Not Working.

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.

rest api
1 |3000

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

AJ Botello avatar image
AJ Botello answered

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

1 |3000

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

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