hackoregon / transportation-backend

Transportation backend repo - 2016 and 2017
8 stars 7 forks source link

MultiValueDictKeyError at /transport/nearby/ #46

Open MikeTheCanuck opened 7 years ago

MikeTheCanuck commented 7 years ago

In both the service.civicpdx.org instance, and when running the container locally, I'm seeing a Django-level exception when calling /transport/nearby. This is what we see when DEBUG=True:

MultiValueDictKeyError at /transport/nearby/
"'address'"
Request Method: GET
Request URL:    http://192.168.99.100:8000/transport/nearby/
Django Version: 1.10.5
Exception Type: MultiValueDictKeyError
Exception Value:    
"'address'"
Exception Location: /usr/local/lib/python3.5/site-packages/django/utils/datastructures.py in __getitem__, line 85
Python Executable:  /usr/local/bin/python3.5
Python Version: 3.5.3
Python Path:    
['/code',
 '/usr/local/bin',
 '/usr/local/lib/python35.zip',
 '/usr/local/lib/python3.5',
 '/usr/local/lib/python3.5/plat-linux',
 '/usr/local/lib/python3.5/lib-dynload',
 '/usr/local/lib/python3.5/site-packages']
Server time:    Sat, 29 Apr 2017 18:45:09 +0000

Note: when DEBUG=False, this exception becomes "Server Error (500)".

MikeTheCanuck commented 6 years ago

2017-11-02: when requesting /nearby I'm now receiving "Server Error (500)" at the browser.

When checking Cloudwatch logs, I see that the request comes through, but no specific errors are noted:

...
[2017-11-02 19:44:59 +0000] [59] [DEBUG] GET /transport/
[2017-11-02 19:44:59 +0000] [59] [DEBUG] Closing connection.
[2017-11-02 19:45:29 +0000] [59] [DEBUG] GET /transport/nearby
[2017-11-02 19:45:44 +0000] [26] [DEBUG] GET /transport/
[2017-11-02 19:45:44 +0000] [26] [DEBUG] Closing connection.
[2017-11-02 19:45:44 +0000] [59] [DEBUG] GET /transport/
[2017-11-02 19:45:44 +0000] [59] [DEBUG] Closing connection.
...
znmeb commented 6 years ago

Hmmm ... is this affecting the front-end / user experience?