datopian / ckan-client-py

Python SDK for CKAN with v3 style cloud storage.
https://tech.datopian.com/ckan-client-guide/
MIT License
3 stars 1 forks source link

Fix `client.action` POST request #26

Closed pdelboca closed 3 years ago

pdelboca commented 3 years ago

Currently client.action is sending the payload using the data parameter which sends it in a key=value&key_2=value_2 format causing CKAN to return an error:

"Bad request - JSON Error: Error decoding JSON data. Error: <BadRequest '400: Bad Request'> JSON data extracted from the request: {}"

Fix: Use json parameter instead.