Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError when sending from the console. #5

Open
ghost opened this issue Nov 7, 2012 · 0 comments
Open

KeyError when sending from the console. #5

ghost opened this issue Nov 7, 2012 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 7, 2012

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants