ParsoidBatchAPI fails when input filenames are not properly normalized. It reports the file as missing. For example, when a space is included between the namespace and dbkey as reported by subbu:
In T112668#1657079, @ssastry wrote:Rerunning visual diffing identified output diffs on [[Image: Flag of the British Army.svg|centre|180px]] with / without the batching api.
[subbu@earth api] echo '[[Image: Flag of the British Army.svg|centre|180px]]' | node parse --useBatchAPI ... <img resource="./File:_Flag_of_the_British_Army.svg" src="./Special:FilePath/_Flag_of_the_British_Army.svg" height="180" width="180" data-parsoid='{"a":{"resource":"./File:_Flag_of_the_British_Army.svg","height":"180","width":"180"},"sa":{"resource":"Image: Flag of the British Army.svg"}}'/> ... [subbu@earth api] echo '[[Image: Flag of the British Army.svg|centre|180px]]' | node parse ... <img resource="./File:_Flag_of_the_British_Army.svg" src="//upload.wikimedia.org/wikipedia/commons/thumb/2/27/Flag_of_the_British_Army.svg/180px-Flag_of_the_British_Army.svg.png" data-file-width="675" data-file-height="450" data-file-type="drawing" height="120" width="180" data-parsoid='{"a":{"resource":"./File:_Flag_of_the_British_Army.svg","height":"120","width":"180"},"sa":{"resource":"Image: Flag of the British Army.svg"}} ...The rendering from non-batching API output matches the rendering from the output of the PHP parser on https://en.wikipedia.org/wiki/Royal_Engineers
In T112668#1657090, @ssastry wrote:Also '[[File:Panama National Anthem.ogg]]' on enwiki:Panama and '[[File: Arizona Fleming Elem FBISD.JPG|thumb|left|upright=1.7|alt=Photo of a school building with the lettering "Arizona Fleming Elementary".|Arizona Fleming Elementary School in Fort Bend ISD]]' on enwiki:Arizona_Fleming