3 ms·
It's dead, Jim? Hitting enter after entering my ZIP code gives me: Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/googl
by slater 16y ago
It's dead, Jim?
Hitting enter after entering my ZIP code gives me:
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 513, in __call__
handler.post(*groups)
File "/base/data/home/apps/codeablepolitics/1.344842764317514643/controllers.py", line 66, in post
geonames_results = geonames.zipcode_search(query, 1)
File "/base/data/home/apps/codeablepolitics/1.344842764317514643/utils/geonames.py", line 26, in zipcode_search
if len(web_service_response['postalCodes']) == 0:
KeyError: 'postalCodes'
Also: add this on the ZIP code input box: onfocus="this.value=''"
- tmcneal 16y agoThank you for the feedback. The search functionality makes a call out to Geonames.org to get location data, and unfortunately I hit the quota for more free account. I'm going to purchase premium service with a higher quota, but in the meantime I modified the search to only accept zipcodes, which will not require a call to geonames.