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.
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
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
-
dstillman Zotero TeamCan you post this to zotero-dev? We try to keep technical discussions there.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage