Closed KrzysztofMadejski closed 9 years ago
In https://github.com/ckan/ckanext-archiver/blob/master/ckanext/archiver/tasks.py#L365 return json.dumps(headers)
return json.dumps(headers)
throws {blabla} is not JSON serializable
{blabla} is not JSON serializable
headers is instance of CaseInsensitiveDict
CaseInsensitiveDict
Changing this line to: json.dumps(dict(headers)) resolve this issue.
json.dumps(dict(headers))
Thanks @KrzysztofMadejski - looks like you have a newer version of 'requests' which caused this. Now fixed.
In https://github.com/ckan/ckanext-archiver/blob/master/ckanext/archiver/tasks.py#L365
return json.dumps(headers)
throws
{blabla} is not JSON serializable
headers is instance of
CaseInsensitiveDict
Changing this line to:
json.dumps(dict(headers))
resolve this issue.