There were no HTTP requests for this event

I am using the latest Twilio.NET SDK (5.0.2) in a VB.NET application. I initiate a message through a REST client that is sent using the messaging service. In the messaging service, I have http://dev.leadtraxsolutions.com/Services/TwilioStatusUpdates.aspx "as the status callback URL.

Expected Result: Twilio to make a POST request to the URL that I set in the messaging service.

Actual Results: The message information in the Twilio Console indicates "There were no HTTP requests for this event"

Here is the code to send the message:

    TwilioClient.Init(AccountSID, AuthToken)

    Dim NewToNumber As New PhoneNumber(ToNumber)
    Dim StatusCallback As New Uri("http://dev.leadtraxsolutions.com/Services/TwilioReplies.aspx")

    Try
        If Not MessageServiceSID Is Nothing Then
            If MessageServiceSID.Length > 0 Then
                _TwilioMessage = MessageResource.Create(NewToNumber, AccountSID, Nothing, MessageServiceSID, Body, Nothing)
            Else
                Dim NewFromNumber As New PhoneNumber(FromNumber)
                _TwilioMessage = MessageResource.Create(NewToNumber, AccountSID, NewFromNumber, Nothing, Body, Nothing, StatusCallback)
            End If
        End If

Can someone please help me understand why the HTTP request is not being executed?

+4

Source: https://habr.com/ru/post/1672837/


All Articles