Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CiteprocRsDriverError: JSON Deserialization Error: unknown field year, expected one of date-parts, season, circa, literal, raw #99

Closed
adomasven opened this issue Dec 9, 2020 · 0 comments · Fixed by #109
Labels
A-core Area: affects all builds of citeproc-rs I-spec Issue: wrong according to spec
Milestone

Comments

@adomasven
Copy link
Member

Zotero debug log
(3)(+0000003): Integration: citeprocRs.insertCluster(({citationID:"LFGL1ErI", properties:{formattedCitation:"{\\rtf Carl R Trueman, \\uc0\\u8220{}A Small Step Towards Rationalism: The Impact of The Metaphysics of Tommaso Campanella on the Theology of Richard Baxter,\\uc0\\u8221{} in \\i Protestant Scholasticism\\uc0\\u8239{}: Essays in Reassessment\\i0{}, ed. Carl R Trueman and R. Scott Clark (Cumbia: Paternoster Press, 1999), 181\\uc0\\u8211{}95.}", plainCitation:"Carl R Trueman, \u201CA Small Step Towards Rationalism: The Impact of The Metaphysics of Tommaso Campanella on the Theology of Richard Baxter,\u201D in Protestant Scholasticism\u202F: Essays in Reassessment, ed. Carl R Trueman and R. Scott Clark (Cumbia: Paternoster Press, 1999), 181\u201395.", dontUpdate:true, noteIndex:126}, citationItems:[{id:"xZ0RfreE/MLbzfnYx", uris:["http://zotero.org/users/783802/items/8KRVTX2C"], itemData:{id:"rt2ymMKA/VtI0pOJ0", type:"chapter", title:"A Small Step Towards Rationalism: The Impact of The Metaphysics of Tommaso Campanella on the Theology of Richard Baxter", 'container-title':"Protestant Scholasticism : Essays in Reassessment", publisher:"Paternoster Press", 'publisher-place':"Cumbia", page:"181-195", 'event-place':"Cumbia", author:[{family:"Trueman", given:"Carl R"}], editor:[{family:"Trueman", given:"Carl R"}, {family:"Clark", given:"R. Scott"}], issued:{year:1999}, 'page-first':"181", 'title-short':"A Small Step"}}], schema:"https://github.com/citation-style-language/schema/raw/master/csl-citation.json"}))

(5)(+0000003): CiteprocRs: insertReference {"id":"xZ0RfreE/MLbzfnYx","type":"chapter","title":"A Small Step Towards Rationalism: The Impact of The Metaphysics of Tommaso Campanella on the Theology of Richard Baxter","container-title":"Protestant Scholasticism : Essays in Reassessment","publisher":"Paternoster Press","publisher-place":"Cumbia","page":"181-195","event-place":"Cumbia","author":[{"family":"Trueman","given":"Carl R"}],"editor":[{"family":"Trueman","given":"Carl R"},{"family":"Clark","given":"R. Scott"}],"issued":{"year":1999},"page-first":"181","title-short":"A Small Step"}

(3)(+0000005): CiteprocRsDriverError: JSON Deserialization Error: unknown field `year`, expected one of `date-parts`, `season`, `circa`, `literal`, `raw` at line 1 column 494 CiteprocRsError@resource://zotero/loader.jsm -> resource://zotero/citeproc_rs_wasm_include.js:54:9 CiteprocRsDriverError@resource://zotero/loader.jsm -> resource://zotero/citeproc_rs_wasm_include.js:60:9 init/imports.wbg.__wbg_new_16465ddabcb4a719@resource://zotero/loader.jsm -> resource://zotero/citeproc_rs_wasm.js:589:19 wasm::wasm_result::helper::<impl wasm::DriverError>::to_js_error::hd5825d773d476ccd@resource://zotero/loader.jsm -> resource://zotero/citeproc_rs_wasm.js:2408378:1 <wasm::wasm_result::helper::WasmResult as core::convert::From<core::result::Result<wasm_bindgen::JsValue,wasm::DriverError>>>::from::hb2595ad7d5360d09@resource://zotero/loader.jsm -> resource://zotero/citeproc_rs_wasm.js:3473632:1 wasm::wasm_result::helper::typescript_serde_result::h9ee2b4d62f1cd415@resource://zotero/loader.jsm -> resource://zotero/citeproc_rs_wasm.js:2971268:1 driver_insertReference@resource://zotero/loader.jsm -> resource://zotero/citeproc_rs_wasm.js:3736618:1 insertReference@resource://zotero/loader.jsm -> resource://zotero/citeproc_rs_wasm.js:263:19 _insertCitationReferences@chrome://zotero/content/xpcom/citeproc-rs-to-citeproc-js.js:115:34 insertCluster@chrome://zotero/content/xpcom/citeproc-rs-to-citeproc-js.js:162:25 Zotero.Integration.Session.prototype._updateCitationsCiteprocRs@chrome://zotero/content/xpcom/integration.js:1891:7 Zotero.Integration.Session.prototype._updateCitations@chrome://zotero/content/xpcom/integration.js:1826:12 Zotero.Integration.Fields.prototype.updateDocument<@chrome://zotero/content/xpcom/integration.js:998:9 tryCatcher@resource://zotero/loader.jsm -> resource://zotero/bluebird/util.js:16:16 module.exports/PromiseSpawn.prototype._promiseFulfilled@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:97:18 From previous event: captureStackTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:915:23 CapturedTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:807:5 longStackTracesCaptureStackTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:482:19 module.exports/Promise.prototype._then@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:261:9 module.exports/Promise.prototype._passThrough@resource://zotero/loader.jsm -> resource://zotero/bluebird/finally.js:94:12 module.exports/Promise.prototype.finally@resource://zotero/loader.jsm -> resource://zotero/bluebird/finally.js:103:12 PromiseSpawn@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:36:25 module.exports/Promise.coroutine/<@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:197:21 Zotero.Integration.Interface.prototype.refresh@chrome://zotero/content/xpcom/integration.js:705:9

This is probably similar to #92, once again, I got it from an old document with embedded metadata.

@stakats stakats added this to the Zotero Beta milestone Apr 13, 2021
@cormacrelf cormacrelf added A-wasm Area: wasm package on npm A-core Area: affects all builds of citeproc-rs I-spec Issue: wrong according to spec and removed A-wasm Area: wasm package on npm labels Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: affects all builds of citeproc-rs I-spec Issue: wrong according to spec
Development

Successfully merging a pull request may close this issue.

3 participants