Closed vitorbaptista closed 10 years ago
The error is:
[error] [client 127.0.0.1] Error - <type 'exceptions.TypeError'>: Undefined is not JSON serializable
The problem is that we're using h.dump_json in https://github.com/ckan/ckanext-choroplethmap/blob/master/ckanext/choroplethmap/theme/templates/choroplethmap_view.html#L12 to parse the filter_fields. But in the beginning, we don't have them, so we try to serialize None, and get this exception
h.dump_json
filter_fields
The error is:
The problem is that we're using
h.dump_json
in https://github.com/ckan/ckanext-choroplethmap/blob/master/ckanext/choroplethmap/theme/templates/choroplethmap_view.html#L12 to parse thefilter_fields
. But in the beginning, we don't have them, so we try to serialize None, and get this exception