Skip to content

KeyError when sending from the console. #5

@ghost

Description

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions