Skip to content

Inconsistent "No Valid References Found" with Zotero library #61

@arcanero-nick

Description

@arcanero-nick

Describe the bug

Plug-in switches from correctly displaying the references and reference map to "No Valid References Found (Rendering from Local Library is not supported)".

To Reproduce

Failure occurs when moving between Obsidian notes containing references. The references are added by using the citation key from a local Zotero library (e.g. @thorpPortfolioChoiceKelly1975) on the current version of Zotero. Once operation stops on one note, it fails on all subsequently visited notes, even if they were operational previously. Operation is restored by toggling a setting (such as "Get using frontmatter" or "Show or hide redundant items") from off to on or on to off.

Console output

plugin:reference-map:103462 Error fetching bibliography from Zotero SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at getZBib (plugin:reference-map:74289:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ReferenceMapData.loadBibFileFromCache (plugin:reference-map:103456:22)
at async ReferenceMapData.eval [as loadLibrary] (plugin:reference-map:103222:9)
loadBibFileFromCache @ plugin:reference-map:103462
processTicksAndRejections @ node:internal/process/task_queues:95
await in processTicksAndRejections (async)
eval @ plugin:reference-map:103222
eval @ plugin:reference-map:103264
await in eval (async)
eval @ plugin:reference-map:101862
eval @ plugin:reference-map:101898
t.iterateLeaves @ app.js:1
t.iterateLeaves @ app.js:1
t.iterateLeaves @ app.js:1
t.iterateRootLeaves @ app.js:1
eval @ plugin:reference-map:101895
e.tryTrigger @ app.js:1
e.trigger @ app.js:1
t.trigger @ app.js:1
t.activeLeafEvents @ app.js:1
c @ app.js:1
u @ app.js:1
setTimeout (async)
h @ app.js:1
t.setActiveLeaf @ app.js:1
(anonymous) @ app.js:1
s @ enhance.js:1
plugin:reference-map:103462 Error fetching bibliography from Zotero SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at getZBib (plugin:reference-map:74289:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ReferenceMapData.loadBibFileFromCache (plugin:reference-map:103456:22)
at async ReferenceMapData.eval [as loadLibrary] (plugin:reference-map:103222:9)
loadBibFileFromCache @ plugin:reference-map:103462
processTicksAndRejections @ node:internal/process/task_queues:95
await in processTicksAndRejections (async)
eval @ plugin:reference-map:103222
eval @ plugin:reference-map:103264
await in eval (async)
eval @ plugin:reference-map:90758
eval @ plugin:reference-map:90786
t.iterateLeaves @ app.js:1
t.iterateLeaves @ app.js:1
t.iterateLeaves @ app.js:1
t.iterateRootLeaves @ app.js:1
eval @ plugin:reference-map:90782
e.tryTrigger @ app.js:1
e.trigger @ app.js:1
t.trigger @ app.js:1
t.activeLeafEvents @ app.js:1
c @ app.js:1
u @ app.js:1
setTimeout (async)
h @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
a @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.loadFile @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.setState @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
a @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.setState @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
a @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.setViewState @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.rerender @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.loadIfDeferred @ app.js:1
t.updateTabDisplay @ app.js:1
t.selectTabIndex @ app.js:1
(anonymous) @ app.js:1
s @ enhance.js:1
plugin:reference-map:103462 Error fetching bibliography from Zotero SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at getZBib (plugin:reference-map:74289:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ReferenceMapData.loadBibFileFromCache (plugin:reference-map:103456:22)
at async ReferenceMapData.eval [as loadLibrary] (plugin:reference-map:103222:9)
loadBibFileFromCache @ plugin:reference-map:103462
processTicksAndRejections @ node:internal/process/task_queues:95
await in processTicksAndRejections (async)
eval @ plugin:reference-map:103222
eval @ plugin:reference-map:103264
await in eval (async)
eval @ plugin:reference-map:90758
eval @ plugin:reference-map:90786
t.iterateLeaves @ app.js:1
t.iterateLeaves @ app.js:1
t.iterateLeaves @ app.js:1
t.iterateRootLeaves @ app.js:1
eval @ plugin:reference-map:90782
e.tryTrigger @ app.js:1
e.trigger @ app.js:1
t.trigger @ app.js:1
t.activeLeafEvents @ app.js:1
c @ app.js:1
u @ app.js:1
setTimeout (async)
h @ app.js:1
t.setActiveLeaf @ app.js:1
(anonymous) @ app.js:1
s @ enhance.js:1
plugin:reference-map:103462 Error fetching bibliography from Zotero SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at getZBib (plugin:reference-map:74289:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ReferenceMapData.loadBibFileFromCache (plugin:reference-map:103456:22)
at async ReferenceMapData.eval [as loadLibrary] (plugin:reference-map:103222:9)
loadBibFileFromCache @ plugin:reference-map:103462
processTicksAndRejections @ node:internal/process/task_queues:95
await in processTicksAndRejections (async)
eval @ plugin:reference-map:103222
eval @ plugin:reference-map:103264
await in eval (async)
eval @ plugin:reference-map:101862
eval @ plugin:reference-map:101898
t.iterateLeaves @ app.js:1
t.iterateLeaves @ app.js:1
t.iterateLeaves @ app.js:1
t.iterateRootLeaves @ app.js:1
eval @ plugin:reference-map:101895
e.tryTrigger @ app.js:1
e.trigger @ app.js:1
t.trigger @ app.js:1
t.activeLeafEvents @ app.js:1
c @ app.js:1
u @ app.js:1
setTimeout (async)
h @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
a @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.loadFile @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.setState @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
a @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.setState @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
a @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.setViewState @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.rerender @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
y @ app.js:1
t.loadIfDeferred @ app.js:1
t.updateTabDisplay @ app.js:1
t.selectTabIndex @ app.js:1
(anonymous) @ app.js:1
s @ enhance.js:1

Platform

  • OS: Windows 11 Pro
  • Obsidian version 1.9.12
  • Plugin version 1.8.1

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions