code-exchange icon indicating copy to clipboard operation
code-exchange copied to clipboard

Default flask app for masked numbers not working

Open outboundcoder opened this issue 5 years ago • 5 comments

Where has this bug occurred? https://github.com/TwilioDevEd/airtng-masked-numbers-flask more precisely https://github.com/TwilioDevEd/airtng-masked-numbers-flask/blob/master/airtng_flask/dev.sqlite

Describe the bug I'm trying to test (Got Twilio upgraded account) the feature of masked phone numbers using Flask app.

Unfortunately it fails.

To Reproduce Steps to reproduce the behavior:

  1. Spent a fair number of hours following and setting up https://github.com/TwilioDevEd/airtng-masked-numbers-flask
  2. SQL.lite file that gets created has some default wrong numbers and app keep tries to send message to that number +523321678083

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. Trying to send message to a default number After signup upon request Trying to send message to a default number

Template bug info (please complete the following information if the bug exists in one of the templates):

  • Template source link: [e.g. github.com/twilio-labs/sample-appointment-reminders-nodejs]
  • OS: [e.g. macOS 10.14.6]
  • Programming language and version: [e.g. JavaScript, Node.js 12.4, npm 6.8]

Desktop (please complete the following information): MacOS 10.15.2 (19C57)

Additional context Can you please update read me file to provide step by step instructions on how to test this after bringing up this http://localhost:5000 ?

outboundcoder avatar Jun 11 '20 03:06 outboundcoder

Thank you so much for opening your first issue in this project! We'll try to get back to it as quickly as possible.

While you are waiting...here's a random picture of a corgi (powered by dog.ceo) picture of dog

welcome[bot] avatar Jun 11 '20 03:06 welcome[bot]

Hey @outboundcoder thanks for reaching out! It seems like your phone number might either not have SMS capabilities in the first place or you might have to enable the geocode you are trying to send to in your geo permissions.

dkundel avatar Jun 11 '20 17:06 dkundel

Hey, thanks for you reply. However, to be clear that number +523321678083 is NOT mine NOR am I trying to send message to that number. It turns out that number is by default present in the sql lite code base and I'm not able to delete it.

Also, on another note, I did try to follow this tutorial to set my local https://www.twilio.com/blog/2018/02/phone-number-forward-mask-python-flask.html

However, I'm getting these 500 internal server messages - are we sure https://github.com/npentrel/twilio-ghost is upto date?

HTTP Requests

POST /sms 500 INTERNAL SERVER ERROR

outboundcoder avatar Jun 11 '20 18:06 outboundcoder

Ah I see. My bad. And sorry for the delayed response. I pinged someone to fix that default sqlite file.

In terms of the other blog post. It was written by an external contributor and I'm unsure if it's up-to-date. Is the Flask server giving you any additional information? I'd be happy to see if we can help you debug that. In theory nothing has changed from the Twilio side but maybe one of the Python dependencies had some changes.

dkundel avatar Jun 24 '20 20:06 dkundel

Nevermind, I'm not working on this issue anymore. thnx for looking

outboundcoder avatar Jun 25 '20 16:06 outboundcoder