I’m working in a project uploading 46 images to Wikimedia Commons. I was able to to upload 37 but I can’t the other 9. I’m getting this error:
18:13:06.259 [..ting.EditBatchProcessor] IO error while editing: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (okio.RealBufferedSource$inputStream$1); line: 1, column: 2] (150866ms)
Using the -v debug or trace flags the message is the same:
18:33:11.233 [..ting.EditBatchProcessor] IO error while editing: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (okio.RealBufferedSource$inputStream$1); line: 1, column: 2] (47807ms)
And I don’t really know where to find the offending “<”, since I’m not using any:
And where Chunked Uploading is described further by one of the links to the API documentation in that wiki page.
@olea OpenRefine also does not do any TIFF compression (and neither does Wikidata Toolkit currently from what I see), which might help your situation. You might want to compress using any tool with LZW or deflate as one of the links Tiff Files on the wiki page suggests. Then upload the compressed TIFF files using OpenRefine?
Chunked uploading is not supported by OpenRefine yet and so uploads of files greater than 100MB will fail.
The error reporting for the Wikibase extension is unacceptably bad, in my opinion. I have some ideas around how to improve that and want to discuss them soon.