twilio-aspnet icon indicating copy to clipboard operation
twilio-aspnet copied to clipboard

Net framework quickstart: responding to SMS, incoming message is empty

Open BumpaRoy opened this issue 2 years ago • 5 comments
trafficstars

I have followed the example to receive a response from an SMS using ASP.Net

I have ngrok installed and working.
My Console has been updated with URL from ngrok with \sms appended
My asp app is running.
I can debug code and get breakpoint in my SMSController class.
But the incomingMessage.Body is Nothing

Using vb.net in my ASP app.

local HomeController code SMSController code Create SMS Code twilio Console Ngrok

BumpaRoy avatar Jun 29 '23 16:06 BumpaRoy

I manually typed over your code and it works fine for me. (share the code instead of screenshots next time 🙏)

Unfortunately, there's nothing else I can look into. I'd suggest checking your ngrok dashboard at http://127.0.0.1:4040/inspect/http and inspect the HTTP requests that Twilio sends to you. Maybe you'll find something odd there to investigate.

Swimburger avatar Jul 03 '23 02:07 Swimburger

First, thank you for the reply.

I looked at the dash board and it is not sending back the body of the message. I am trying to follow the example https://www.twilio.com/docs/sms/quickstart/csharp-dotnet-framework#receive-and-reply-to-inbound-sms-messages-with-aspnet-mvc.

All I have set is the Callback URL when sending the SMS message. Everything appears to be "hooked up" correctly as I am receiving the MessageSID and Status, but there is no "Body" property. Should there be?? As I read the example, it appears to be expecting a value for Body property. Do I need to do something to set that property??

BumpaRoy avatar Jul 03 '23 12:07 BumpaRoy

Update:

I think I was confusing two examples. It is working now that I send the initial msg from my phone. I was trying to send a message via a program to my twilio phone, then having twilio automatically send me back the status. When I send it by my phone it is working. Thank you.

BumpaRoy avatar Jul 03 '23 14:07 BumpaRoy

Ah I see. Yes, the Body property is only for incoming SMS, not for status updates for outgoing SMS. This issue can be closed I think.

Swimburger avatar Jul 03 '23 14:07 Swimburger

Yes.

Kenneth Roy Progressive Edge (262) 250-0578 x101

From: Niels Swimberghe @.> Sent: Monday, July 3, 2023 9:50 AM To: twilio-labs/twilio-aspnet @.> Cc: Kenneth Roy @.>; Author @.> Subject: Re: [twilio-labs/twilio-aspnet] Net framework quickstart: responding to SMS, incoming message is empty (Issue #132)

Ah I see. Yes, the Body property is only for incoming SMS, not for status updates for outgoing SMS. This issue can be closed I think.

— Reply to this email directly, view it on GitHubhttps://github.com/twilio-labs/twilio-aspnet/issues/132#issuecomment-1618517817, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BA3K72H74FOFJP7KDKOSEALXOLL3HANCNFSM6AAAAAAZYYXVBM. You are receiving this because you authored the thread.Message ID: @.***>

BumpaRoy avatar Jul 03 '23 14:07 BumpaRoy