Closed Conzar closed 2 years ago
I am using java to upload to CKAN.
I am also using x-www-form-urlencoded for the content-type. This works without issue when Google Analytics is off but doesn't when it is enabled. I tried with CURL and by default CURL uses x-www-form-urlencoded and that works.
So still trying to figure out why it is failing...
Can you try application/json
or multipart/form-data
content-types instead? I remember that CKAN 2.8 had some problems with x-www-form-urlencoded requests to the API.
BTW, what exact version of CKAN and ckanext-googleanalytics you are using?
You are correct! Switching to application/json worked!
Enabling Google Analytics on CKAN 2.8 breaks using the CKAN API. Here are the logs
Any ideas?