EOFException when uploading document

Petter Reinholdtsen pere at hungry.com
Mon Aug 23 09:52:45 CEST 2021


[Gareth Western]
> Petter, I wonder if the problem is something in the use of urllib in
> the import-uttrekk script. Is there a reason you favoured the urllib
> library over the “requests” library? I thought the latter was more
> robust / well-known, but perhaps there is something in the history in
> your development of the script? I’ll try replacing it and see if that
> helps.

Origially it was because urllib was part of python, while requests was
an external library and it was easier to get it working with Python 2 at
the time.  Recently I have migrated to requests, but not in a structured
manner, so some parts of the code still use the original system.

-- 
Happy hacking
Petter Reinholdtsen


More information about the nikita-noark mailing list