code-exchange
code-exchange copied to clipboard
Default flask app for masked numbers not working
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:
- Spent a fair number of hours following and setting up https://github.com/TwilioDevEd/airtng-masked-numbers-flask
- 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.

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 ?
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)

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.
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
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.
Nevermind, I'm not working on this issue anymore. thnx for looking