JavaScript Error: "Cannot use 'in' operator to search for 'length' in undefined"
Report ID:2136126204
I can not save a paper in arxiv suddenly. This is the log:
(3)(+0000000): Setting debug.store to true
(4)(+0011474): Translate: Parsing code for arXiv.org (ecddda2e-4fc6-4aea-9f17-ef3b56d7377a, 2016-09-06 03:40:00)
(3)(+0000003): Translate: Beginning translation with arXiv.org
(3)(+0000003): Translate: resolving URL http://export.arxiv.org/oai2?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai:arXiv.org:1611.05431
(3)(+0000003): Translate: resolved to http://export.arxiv.org/oai2?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai:arXiv.org:1611.05431
(3)(+0000004): HTTP GET http://export.arxiv.org/oai2?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai:arXiv.org:1611.05431
(3)(+0000003): HTTP POST {} to http://127.0.0.1:23119/connector/getSelectedCollection
(3)(+0000006): Connector: Method getSelectedCollection succeeded
(2)(+0000662): Translate: Translation using arXiv.org failed:
string => TypeError: Cannot use 'in' operator to search for 'length' in undefined
stack => TypeError: Cannot use 'in' operator to search for 'length' in undefined
at Zotero.Utilities.Translate.xpath (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/zotero/utilities.js:1093:17)
at Function.xpath (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:82:17)
at getXPathNodeTrimmed (eval at eval (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:50:4), :190:16)
at parseXML (eval at eval (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:50:4), :101:18)
at chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/zotero/utilities_translate.js:321:5
at chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/messaging_inject.js:78:33
at sendResponseAndClearCallback (extensions::messaging:361:9)
at messageListener (extensions::messaging:393:11)
at EventImpl.dispatchToListener (extensions::event_bindings:388:22)
at Event.publicClassPrototype.(anonymous function) [as dispatchToListener] (extensions::utils:149:26)
url => https://arxiv.org/abs/1611.05431
downloadAssociatedFiles => true
automaticSnapshots => true
(5)(+0000002): Translate: Running handler 0 for done
I can not save a paper in arxiv suddenly. This is the log:
(3)(+0000000): Setting debug.store to true
(4)(+0011474): Translate: Parsing code for arXiv.org (ecddda2e-4fc6-4aea-9f17-ef3b56d7377a, 2016-09-06 03:40:00)
(3)(+0000003): Translate: Beginning translation with arXiv.org
(3)(+0000003): Translate: resolving URL http://export.arxiv.org/oai2?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai:arXiv.org:1611.05431
(3)(+0000003): Translate: resolved to http://export.arxiv.org/oai2?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai:arXiv.org:1611.05431
(3)(+0000004): HTTP GET http://export.arxiv.org/oai2?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai:arXiv.org:1611.05431
(3)(+0000003): HTTP POST {} to http://127.0.0.1:23119/connector/getSelectedCollection
(3)(+0000006): Connector: Method getSelectedCollection succeeded
(2)(+0000662): Translate: Translation using arXiv.org failed:
string => TypeError: Cannot use 'in' operator to search for 'length' in undefined
stack => TypeError: Cannot use 'in' operator to search for 'length' in undefined
at Zotero.Utilities.Translate.xpath (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/zotero/utilities.js:1093:17)
at Function.xpath (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:82:17)
at getXPathNodeTrimmed (eval at eval (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:50:4), :190:16)
at parseXML (eval at eval (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:50:4), :101:18)
at chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/zotero/utilities_translate.js:321:5
at chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/messaging_inject.js:78:33
at sendResponseAndClearCallback (extensions::messaging:361:9)
at messageListener (extensions::messaging:393:11)
at EventImpl.dispatchToListener (extensions::event_bindings:388:22)
at Event.publicClassPrototype.(anonymous function) [as dispatchToListener] (extensions::utils:149:26)
url => https://arxiv.org/abs/1611.05431
downloadAssociatedFiles => true
automaticSnapshots => true
(5)(+0000002): Translate: Running handler 0 for done
-
adamsmithworks for me. Going by the debug, I'm pretty sure you just hit a momentary problem in the arXiv API. Let us know if this isn't working again for you and I can take a closer look.
-
otakutyrantIt works now... So this is a momentary problem exactly.
-
eiennohitoI still have this problem when trying today.