ZU.processDocuments cannot handle 404 errors

Hi!

I’m in the process of updating the Deutsche Nationalbibliothek (DNB) Translator for importing a large list of ISBNs and fetching the additional Metadata from DNB.

It occurred that a link provided by DNB was actually dead, 404. Then ZU.processDocuments ends the whole importing process without importing anything to Zotero. And there is no possibility to catch or handle this error.

When I switch to ZU.doGet, the callback cannot access the request object. It throws also an error when I try to access any property, e.g. Error: Permission denied to access property "status"

Any workarounds for this? Plans to give at least reading access to the request object or an onerror handler for ZU.processDocuments?

Best wishes,
Jürgen
Sign In or Register to comment.