takeyourmeds / takeyourmeds-web

Low-tech medication reminder application that can call or text a user with a custom message on any desired schedule.
MIT License
10 stars 5 forks source link

Call from Twilio gives a spoken error message #118

Closed DeckOfPandas closed 8 years ago

DeckOfPandas commented 8 years ago

"I'm sorry, an application error has occurred"

From www.takeyourmeds.co.uk

DeckOfPandas commented 8 years ago

Twilio log: Error 12100: Twilio was unable to parse the provided XML Document. (etc)

DeckOfPandas commented 8 years ago

--> View Call shows:

"Error on line 2 of document : The processing instruction target matching "[xX][mM][lL]" is not allowed. Please ensure that the response body is a valid XML document."

DeckOfPandas commented 8 years ago

I can't fix this problem.

The XML has

/static/mp3/hi_mum_medication_reminder.mp3

in place of

/media/mp3/hi_mum_medication_reminder.mp3

But I can't work out where this string is built.

I ended up at: if reminder.audio_url: make_call( reminder.phone_number, staticfiles_storage.url(reminder.audio_url), ) return

./takeyourmeds/settings/defaults/init.py has: STATICFILES_DIRS = (os.path.join(BASE_DIR, 'media'),) STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'

...and then I'm stuck.

@lamby : Could this be added on to milestone 3 please? Apologies, I don't know what else to do, and the app currently doesn't work...

lamby commented 8 years ago

This was two separate problems:

(I can receive SMS whilst abroad but I can't appear to receive phone calls on my number. The twilio logs do suggest it is now working, however.)