Zotero Integration error(2): Error retrieving item data: Unexpected end of JSON input

Note: This issue has been reported before but is closed as was later resolved (see here)

Obsidian.AppImage (Version 1.6.5)
Obsidian Community Plugin: Zotero Integration (Version: 3.0.3)
Zotero (Version 6.0.35)
Zotero Add-on: Better BibTex for Zotero 6.7.211
OS: Fedora Linux 40 (Workstation Edition) x86_64
Kernel: Linux 6.9.7-200.fc40.x86_64
DE: GNOME 46.3.1

Steps to reproduce

Zotero Integration Hotkey → Select item from menu →
Results in following error:

‘Error retrieving item data: Unexpected end of JSON input’

image

Did you follow the troubleshooting guide?

Y

I can’t test this in restricted mode as the issue requires plugin to be active.
I did try with default theme and turned off all snippets.

Expected result

Normally… (has been working in past) it outputs text as a new note into my folder INBOX flowing templates I’ve setup. However, this was last year and I haven’t used this year until trying this week.

Actual result

‘Error retrieving item data: Unexpected end of JSON input’

image

Environment

SYSTEM INFO:
Obsidian version: v1.6.5
Installer version: v1.6.5
Operating system: #1 SMP PREEMPT_DYNAMIC Thu Jun 27 18:11:45 UTC 2024 6.9.7-200.fc40.x86_64
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 2
Restricted mode: off
Plugins installed: 20
Plugins enabled: 1
1: Zotero Integration v3.0.3

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.


Additional information

example template has worked in past:

{%- macro colorValueToName(color) -%}
{%- switch color -%}
{%- case “#ffd400” -%}
Yellow - Interesting point
{%- case “#ff6666” -%}
Red - Disagree
{%- case “#5fb236” -%}
Green - Important to me
{%- case “#2ea8e5” -%}
Blue - After additional reading
{%- case “#a28ae5” -%}
Purple - Followup
{%- case “#e56eee” -%}
Magenta | Pink - TITLE
{%- case “#f19837” -%}
Orange - Important point by author
{%- case “#aaaaaa” -%}
Gray - TITLE
{%- endswitch -%}
{%- endmacro -%}
{%- macro calloutHeader(type) -%}
{%- switch type -%}
{%- case “highlight” -%}
Highlight
{%- case “strike” -%}
Strikethrough
{%- case “underline” -%}
Underline
{%- case “image” -%}
Image
{%- default -%}
Note
{%- endswitch -%}
{%- endmacro %}

[!meta]- Book details
authors:: [[@{{authors}}]]
title:: “{{title}}”
published:: {{date | format(“YYYY”)}}
first_published:: {{extra}}
isbn:: {{ISBN}}
citekey:: [[{{citekey}}]]
zotero:: link

{%- if bibliography %}
Bibliography: {{bibliography}}
{%- endif %}

[!abstract]-
{%- if abstractNote %}
Abstract: {{abstractNote}}
{%- endif %}

Title: “{{title}}”
Author: [[@{{authors}}]]
First Published: {{extra}}

dnc:: [[{{importDate |format(“YYYY-MM-DD”)}}]] {{importDate |format(“HH:mm”)}}
dnm:: =this.file.mtime
type:: :books:
status:: :blue_square:
tags:: #review/book, #zoteroimport, {{hashTags}}

tags (from all comments): =this.file.tags


:yellow_square: Interesting point
:orange_square: Important point by Author
:green_square: Important to Me
:purple_square: Something to followup
:red_square: Disagree with Author
:blue_square: Definitions, terminology

ANNOTATIONS

{% persist “annotations” %}
{% set annots = annotations | filterby(“date”, “dateafter”, lastImportDate) -%}
{% if annots.length > 0 %}
{% for color, annots in annots | groupby(“color”) -%}

{{colorValueToName(color)}}

{% for annot in annots -%}

[!quote{% if annot.color %}|{{annot.color}}{% endif %}] {{calloutHeader(annot.type)}}
{%- if annot.annotatedText %}
{{annot.annotatedText}}
{%- endif -%}
{%- if annot.imageRelativePath %}
![[{{annot.imageRelativePath}}]]
{%- endif %}
{%- if annot.ocrText %} {{annot.ocrText}} {%- endif %} Page {{annot.pageLabel}}

Comment
{%- if annot.comment %}
{{annot.comment}}
{%- endif %}

{%- if annot.hashTags %}

Tags: {{annot.hashTags}}
{%- endif %}
Date modified: {{annot.date |format(“YYYY-MM-DD HH:mm”)}}

{% endfor -%}
{% endfor -%}
{% endif %}
{% endpersist %}

We do not take bug reports involving third party plugins. Moved to the help section.

Thanks. My apologies. This can be closed now as I un-installed and reinstalled plug-ins and it is working fine now.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.