Skip to content

Reference importer not working; seems to fail in crossref.py "No JSON object could be decode" #17

@soto97

Description

@soto97

As of today, the reference importer workflow for Alfred is not working for me. I type 'ref' followed by search terms and then I get nothing. Below I have the debug log output from Alfred. You will see me try to different searches. The first one, I just copied and pasted in the query. The second one, I typed the query terms, so you see the queuing working correctly. In both cases the workflow fails and the error message says, ValueError: No JSON object could be decoded.

Does anyone have any idea what is going on and how to fix it?

Note: I am running on Catalina and I have the most recent version of Reference Importer installed on Alfred 4.1.1.

[13:24:46.560] Logging Started...
[13:24:51.728] Reference Importer[Script Filter] Queuing argument 'A Tutorial on Lateral Boundary Conditions as a Basic and Potentially Serious Limitation to Regional Numerical Weather Prediction'
[13:24:52.610] Reference Importer[Script Filter] Script with argv '(null)' finished
[13:24:52.613] ERROR: Reference Importer[Script Filter] Code 1: Traceback (most recent call last):
  File "crossref.py", line 36, in <module>
    for j in r.json():
  File "/Users/asoto/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.621446A5-1079-4155-9F7E-7A1416FC6D41/requests/models.py", line 638, in json
    return json.loads(self.text or self.content, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[13:26:03.860] Reference Importer[Script Filter] Queuing argument 'm'
[13:26:03.993] Reference Importer[Script Filter] Queuing argument 'ma'
[13:26:04.149] Reference Importer[Script Filter] Queuing argument 'mar'
[13:26:04.307] Reference Importer[Script Filter] Queuing argument 'mart'
[13:26:04.464] Reference Importer[Script Filter] Queuing argument 'marti'
[13:26:04.647] Reference Importer[Script Filter] Queuing argument 'martia'
[13:26:04.895] Reference Importer[Script Filter] Queuing argument 'martian'
[13:26:04.904] Reference Importer[Script Filter] Script with argv '(null)' finished
[13:26:04.906] ERROR: Reference Importer[Script Filter] Code 1: Traceback (most recent call last):
  File "crossref.py", line 36, in <module>
    for j in r.json():
  File "/Users/asoto/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.621446A5-1079-4155-9F7E-7A1416FC6D41/requests/models.py", line 638, in json
    return json.loads(self.text or self.content, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[13:26:05.049] Reference Importer[Script Filter] Queuing argument 'martian '
[13:26:05.297] Reference Importer[Script Filter] Queuing argument 'martian a'
[13:26:05.431] Reference Importer[Script Filter] Queuing argument 'martian at'
[13:26:05.567] Reference Importer[Script Filter] Queuing argument 'martian atm'
[13:26:05.702] Reference Importer[Script Filter] Queuing argument 'martian atmo'
[13:26:05.719] Reference Importer[Script Filter] Script with argv '(null)' finished
[13:26:05.719] ERROR: Reference Importer[Script Filter] Code 1: Traceback (most recent call last):
  File "crossref.py", line 36, in <module>
    for j in r.json():
  File "/Users/asoto/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.621446A5-1079-4155-9F7E-7A1416FC6D41/requests/models.py", line 638, in json
    return json.loads(self.text or self.content, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[13:26:05.904] Reference Importer[Script Filter] Queuing argument 'martian atmos'
[13:26:05.994] Reference Importer[Script Filter] Queuing argument 'martian atmosp'
[13:26:06.265] Reference Importer[Script Filter] Queuing argument 'martian atmosph'
[13:26:06.283] Reference Importer[Script Filter] Script with argv '(null)' finished
[13:26:06.284] ERROR: Reference Importer[Script Filter] Code 1: Traceback (most recent call last):
  File "crossref.py", line 36, in <module>
    for j in r.json():
  File "/Users/asoto/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.621446A5-1079-4155-9F7E-7A1416FC6D41/requests/models.py", line 638, in json
    return json.loads(self.text or self.content, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[13:26:06.377] Reference Importer[Script Filter] Queuing argument 'martian atmosphe'
[13:26:06.534] Reference Importer[Script Filter] Queuing argument 'martian atmospher'
[13:26:06.715] Reference Importer[Script Filter] Queuing argument 'martian atmospheri'
[13:26:07.045] Reference Importer[Script Filter] Script with argv '(null)' finished
[13:26:07.070] ERROR: Reference Importer[Script Filter] Code 1: Traceback (most recent call last):
  File "crossref.py", line 36, in <module>
    for j in r.json():
  File "/Users/asoto/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.621446A5-1079-4155-9F7E-7A1416FC6D41/requests/models.py", line 638, in json
    return json.loads(self.text or self.content, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[13:26:07.459] Reference Importer[Script Filter] Queuing argument 'martian atmospheric'
[13:26:07.751] Reference Importer[Script Filter] Queuing argument 'martian atmospheric '
[13:26:07.841] Reference Importer[Script Filter] Script with argv '(null)' finished
[13:26:07.848] ERROR: Reference Importer[Script Filter] Code 1: Traceback (most recent call last):
  File "crossref.py", line 36, in <module>
    for j in r.json():
  File "/Users/asoto/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.621446A5-1079-4155-9F7E-7A1416FC6D41/requests/models.py", line 638, in json
    return json.loads(self.text or self.content, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[13:26:07.999] Reference Importer[Script Filter] Queuing argument 'martian atmospheric c'
[13:26:08.086] Reference Importer[Script Filter] Queuing argument 'martian atmospheric co'
[13:26:08.312] Reference Importer[Script Filter] Queuing argument 'martian atmospheric col'
[13:26:08.469] Reference Importer[Script Filter] Queuing argument 'martian atmospheric coll'
[13:26:08.524] Reference Importer[Script Filter] Script with argv '(null)' finished
[13:26:08.533] ERROR: Reference Importer[Script Filter] Code 1: Traceback (most recent call last):
  File "crossref.py", line 36, in <module>
    for j in r.json():
  File "/Users/asoto/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.621446A5-1079-4155-9F7E-7A1416FC6D41/requests/models.py", line 638, in json
    return json.loads(self.text or self.content, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[13:26:08.582] Reference Importer[Script Filter] Queuing argument 'martian atmospheric colla'
[13:26:08.694] Reference Importer[Script Filter] Queuing argument 'martian atmospheric collap'
[13:26:08.806] Reference Importer[Script Filter] Queuing argument 'martian atmospheric collaps'
[13:26:08.989] Reference Importer[Script Filter] Queuing argument 'martian atmospheric collapse'
[13:26:09.167] Reference Importer[Script Filter] Script with argv '(null)' finished
[13:26:09.181] ERROR: Reference Importer[Script Filter] Code 1: Traceback (most recent call last):
  File "crossref.py", line 36, in <module>
    for j in r.json():
  File "/Users/asoto/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.621446A5-1079-4155-9F7E-7A1416FC6D41/requests/models.py", line 638, in json
    return json.loads(self.text or self.content, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[13:26:09.923] Reference Importer[Script Filter] Script with argv '(null)' finished
[13:26:09.943] ERROR: Reference Importer[Script Filter] Code 1: Traceback (most recent call last):
  File "crossref.py", line 36, in <module>
    for j in r.json():
  File "/Users/asoto/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.621446A5-1079-4155-9F7E-7A1416FC6D41/requests/models.py", line 638, in json
    return json.loads(self.text or self.content, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions