EOFException when uploading document

Thomas Sødring tsodring at oslomet.no
Mon Aug 23 17:50:32 CEST 2021


On 8/23/21 3:33 PM, Gareth Western wrote:
>
> Aha,  I think I’ve narrowed the problem down to something less 
> “magical” than hostname issues. It’s related to how the import script 
> opens files when it sends the POST to upload a doc:
>
> *with open(filepath) as content:*
>
> **
>
> should be:
>
> *with open(filepath, ‘rb’) as content:*
>
> This is probably a python2 -> 3 legacy thing?
>
Yes, I can't find the relevant commit at the moment, but we did 
experience a similar issue when we did the upgrade. I am surprised that 
this is still an issue.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.nuug.no/pipermail/nikita-noark/attachments/20210823/9f69dd13/attachment-0001.htm 


More information about the nikita-noark mailing list