Skip to main content

Hello,

I try to create resource inside my Ckan session with the CkanConnector and it doesn't work ><

All is good with the dataset creation but when i try this for the resource creation

imagewith url is an attribute with url like https://entrepot.metropolegrenoble.fr/opendata/200040715-MET/ESPNAT_PAT_ARBORE_TOUS/json/PATRIMOINE_ARBORE_EPSG4326.json

and for dataset the id of the dataset i've got this :

HTTP 400: "Requ\\u00eate incorrecte - Erreur JSON : Error decoding JSON data. Error: JSONDecodeError('Expecting value: line 1 column 1 (char 0)',) JSON data extracted from the request: 'url=https://entrepot.metropolegrenoble.fr/opendata/200040715-MET/ESPNAT_PAT_ARBORE_TOUS/json/PATRIMOINE_ARBORE_EPSG4326.json&package_id=3c510f3f-0da9-4ae6-9450-30803f9e6c9a&name=PATRIMOINE_ARBORE_EPSG4326.json&mimetype=application/json'"

 

Any ideas ?

 

Best regards

 

Hi @pierre_gam​ 

Are you able to share what you have set as the value for the Dataset parameter? It should be either the name or ID (an alphanumeric with dashes) of the dataset/package.


Yes i set the id of the dataset 3c510f3f-0da9-4ae6-9450-30803f9e6c9a


Yes i set the id of the dataset 3c510f3f-0da9-4ae6-9450-30803f9e6c9a

Hi @pierre_gam​ 

I spoke with our development team about the CKAN error. They suspect the CKAN server sending a response that is not JSON and that is the reason for the error you are seeing.

Are you able enable log debug (Tools > FME Options > Translation > Log Message Filter) for the log file and run the workspace again? The log file should now contain more information, such as the response from the server. Note that the log will contain credentials, so I would recommend sending the log file via a support case and reference this post.


Hi @pierre_gam​ 

I spoke with our development team about the CKAN error. They suspect the CKAN server sending a response that is not JSON and that is the reason for the error you are seeing.

Are you able enable log debug (Tools > FME Options > Translation > Log Message Filter) for the log file and run the workspace again? The log file should now contain more information, such as the response from the server. Note that the log will contain credentials, so I would recommend sending the log file via a support case and reference this post.

Done !

Thank you !


Reply