Closed sorenwacker closed 3 months ago
In addition, new lines are introduced inside the uploaded files:
</binaryDataArray>
</binaryDataArrayList>
</spectrum>
<sp
ectrum index="1154" id="controllerType=0 controllerNumber=1 scan=1155" defaultArrayLength="894">
<cvParam cvRef="MS" accession="MS:1000511" name="ms level" value="1"/>
<cvParam cvRef="MS" accession="MS:1000129" name="negative scan" value=""/>
<cvParam cvRef="MS" accession="MS:1000579" name="MS1 spectrum" value=""/>
Should be:
</binaryDataArray>
</binaryDataArrayList>
</spectrum>
<spectrum index="1154" id="controllerType=0 controllerNumber=1 scan=1155" defaultArrayLength="894">
<cvParam cvRef="MS" accession="MS:1000511" name="ms level" value="1"/>
<cvParam cvRef="MS" accession="MS:1000129" name="negative scan" value=""/>
<cvParam cvRef="MS" accession="MS:1000579" name="MS1 spectrum" value=""/>
Setting the chunksize to 50 removes the empty lines within the files but keeps the empty line in the beginning. One file is around 10 - 20 MB.
Using werkzeug==2.2.3
seems to fix it.
If you can find a minimal reproducing example with Werkzeug only, can you report it there? This is the second report I've seen of this, but I can't reproduce it with a simple example.
Reported at https://github.com/pallets/werkzeug/issues/2675
I am running to a strange error. After uploading the files the files start with an empty line. I get this behaviour with the same version of
dash-uploader
.Before:
After:
Versions, adding empty line after upload:
Versions, files unchanged (expected behaviour):
The behaviour might come from some other libraries installed.