I see your fix and I'll raise you a
0001-Fix-critical-whitespace-and-import-typos-in-previous.patch.txt
The good news is it works fine. The weird news is I get the same collections.json, i.e. aside from the alarming error message and the obvious inability to handle those PDOCs regardless, nothing was actually wrong?

Perhaps I just got lucky. Either way, the fix is useful.