Open gerbyzation opened 6 years ago
Okay, I was a bit thrown off by the event callback, in this context just calling raise util.JobError(str(e))
would solve the problem. I'm not sure if that would negatively impact other exceptions though.
Any progress or updates on this issue? We are also experiencing the exception "error['message'] must be a string", which is hiding the true cause.
@timvanoijen sorry, I don't really work on CKAN stuff anymore and this is long enough ago I don't remember how we ended up dealing with this.
I also experienced this issue this week, start with error on ckanserviceprovider
InvalidErrorObjectError: error['message'] must be a string
then followed by error in datapusher
JobError: Did not recognise extension "[typefile]".any: Did not recognise detected MIME type: "[application/...]". any idea ?
I've got a setup with ckan 2.7.3 and datapusher 0.0.13.
When pressing 'upload to datastore' on a geojson resource, it updates with the message 'fetching from [..]', and hangs after that. Digging into the datapusher logs the following exception is found:
The
error
object triggering this is{u'message': ReadError('Can\'t read Excel file: XLRDError(\'Unsupported format, or corrupt file: Expected BOF record; found \\\'{\\\\n"type"\\\'\',)', <traceback object at 0x7f36a7fc4050>)}
, coming from https://github.com/ckan/datapusher/blob/1538e496e5181f94a873f233651c9021f2e676e8/datapusher/jobs.py#L403-L412The cause of this error is another question, but regardless of that the error handling should not raise an exception itself and consequently CKAN should receive an update with an appropriate message.
Happy to help out on this, but would probably need some guidance from someone who's a bit more familiar with this codebase.