Closed amercader closed 10 years ago
Fixed on 2394e81
I am still experiencing this bug in CKAN 2.2:
Error: [u' File "/usr/lib/ckan/datapusher/lib/python2.7/site-packages/apscheduler/scheduler.py", line 512, in _run_job\n retval = job.func(*job.args, **job.kwargs)\n', u' File "/usr/lib/ckan/datapusher/src/datapusher/datapusher/jobs.py", line 278, in push_to_datastore\n row_set = table_set.tables.pop()\n', u"IndexError('pop from empty list',)"]
We need to have a look again
Yes please do. ;-)
Hey @ntoll, @baskinomics. I can't reproduce this error. Can either of you help out with some steps to reproduce?
Hi guys,
Any luck on this bug? I'm getting it as well on ckan 2.2. Steps to reproduce - following the ckan docs about datapusher from http://docs.ckan.org/projects/datapusher/en/latest/ Thank you.
I hope it will help someone else as well. On my case, this error appeared only on resources uploaded in the localstore and not on url/api resources. The reason of this was that my web server incorrectly sent the mime type of csv files as text/html. After teaching it to send as text/csv, datapusher worked without error.
@teodorescuserban thanks for that, this occurs as the mimetype causes messytables to return an HTMLTableSet with an emtpy list as it's rowset.
We should probably make a better error message, whenever this occurs.
I'm closing this issue as it's unrelated to whether the dataset is private or not, unless @ntoll or @baskinomics can provide more logs/details
For uploaded files in CKAN that belong to private datasets, we must send the API key, otherwise we won't be able to get them.
Also the code that handles messytables parsing of the file could be improved, otherwise you get a nasty exception: