nyaruka / rapidsms-httprouter

Implements a router in the HTTP thread, one message per call.
http://www.nyaruka.com/
40 stars 38 forks source link

KeyError when sending from the console. #5

Open ghost opened 12 years ago

ghost commented 12 years ago

When am trying to send a message from rapidsms using the rapidsms-httprouter console I get the following Error ,I have also attached the full traceback. Environment:

Request Method: POST Request URL: http://127.0.0.1/router/console

Django Version: 1.3 Python Version: 2.7.3 Installed Applications: ['django.contrib.sites', 'rapidsms_httprouter', 'django_nose', 'djtables', 'rapidsms', 'eav', 'alerts', 'zregistration', 'profile', 'zpolls', 'poll', 'simple_locations', 'rapidsms.contrib.handlers', 'djcelery', 'django.contrib.auth', 'django.contrib.admin', 'django.contrib.sessions', 'django.contrib.contenttypes', 'django.contrib.staticfiles', 'rapidsms.contrib.default', 'rapidsms.contrib.export', 'rapidsms.contrib.locations', 'rapidsms.contrib.messaging', 'rapidsms.contrib.registration', 'rapidsms.contrib.scheduler', 'rapidsms.contrib.echo'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback: File "/home/emmanuel/unicef/test/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/home/emmanuel/unicef/test/local/lib/python2.7/site-packages/django/contrib/admin/views/decorators.py" in _checklogin
  2. return view_func(request, _args, *_kwargs) File "/home/emmanuel/unicef/test/local/lib/python2.7/site-packages/rapidsms_httprouter-0.3.0-py2.7.egg/rapidsms_httprouter/views.py" in console
  3. reply_form.errors['recipient'].append("This number isn't in the system")

Exception Type: KeyError at /router/console Exception Value: 'recipient'