ckan / ckan/datapusher

Datastore upload error

Open
#43 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
82
Forks
157
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm using CKAN 2.2 and the latest DataPusher master.
I'm trying to push a csv File with the following content:

``` csv
name;id;title;description;image_url;state
Group_1;;Erster Gruppe;;https://pbs.twimg.com/media/BxkP0jHIYAA8iFK.jpg;deleted
Group_2;;Zweite Gruppe;;https://pbs.twimg.com/media/BxkP0jHIYAA8iFK.jpg;deleted
Group_3;;Dritte Gruppe;;https://pbs.twimg.com/media/BxkP0jHIYAA8iFK.jpg;active
Group_4;;Vierte Gruppe;;https://pbs.twimg.com/media/BxkP0jHIYAA8iFK.jpg;deleted
Group_5;;Funfte Gruppe;;https://pbs.twimg.com/media/BxkP0jHIYAA8iFK.jpg;active
```

In the datapusher tab I only receive the following error:

```
Traceback (most recent call last):
File "/usr/lib/ckan/datapusher/lib/python2.7/site-packages/apscheduler/scheduler.py", line 512, in _run_job
retval = job.func(*job.args, **job.kwargs)
File "/home/vagrant/ckan/lib/datapusher/src/datapusher/datapusher/jobs.py", line 305, in push_to_datastore
delete_datastore_resource(resource_id, api_key, ckan_url)
File "/home/vagrant/ckan/lib/datapusher/src/datapusher/datapusher/jobs.py", line 129, in delete_datastore_resource
good_status=(201, 200, 404), ignore_no_success=True)
File "/home/vagrant/ckan/lib/datapusher/src/datapusher/datapusher/jobs.py", line 78, in check_response
if not ignore_no_success or json_response.get('success'):
AttributeError: 'unicode' object has no attribute 'get'
```

Any ideas how to fix this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.