There were no HTTP Requests logged for this event

限于喜欢 提交于 2019-12-10 13:41:09

问题


I am using the latest Twilio .NET SDK (5.0.2) in a VB.NET application. I am initiating a message via the REST Client that gets sent using a Messaging Service. In the Messaging Service I have "http://dev.leadtraxsolutions.com/Services/TwilioStatusUpdates.aspx" as the Status Callback URL.

Expected Results: Twilio to make a POST Request to the URL I have set up in the Messaging Service.

Actual Results: Message details in Twilio Console indicate "There were no HTTP Requests logged for this event"

Here is the code for sending 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 no HTTP request is being made?

来源:https://stackoverflow.com/questions/42930601/there-were-no-http-requests-logged-for-this-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!