Skip to main content
The First Step
February 15, 2020
Solved

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.

    PhongVu
    PhongVuAnswer
    Community Manager
    February 17, 2020

    Webhooks notification is working again in sandbox environment!

    My apologies for any inconvenience!

    12 replies

    New Participant
    October 1, 2020

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

    New Participant
    June 8, 2021

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