Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

No JSON object could be decoded (New Issue!) #56

Closed
sukhysall opened this issue Sep 20, 2013 · 5 comments
Closed

No JSON object could be decoded (New Issue!) #56

sukhysall opened this issue Sep 20, 2013 · 5 comments
Labels

Comments

@sukhysall
Copy link

Base Info:

I'm running XDM on Synology DS210J
XDM installed via command line via the "git clone..." method.
I have the following (configured) plugins: "Newznab", "Movies", "Books", "Music", "Goodreads", "TheMovieDB", "Discogs".
I can successfully search. I can successfully "add" specific search results.
I am using usenet-crawler as my index provider.

Issue:

I'm using usenet-crawler as my index provider & when setting a book and music result to "wanted", I had received a similar message to the below before realizing I had not applied the secure "https" protocol in the settings.

Well I applied this and I went back to my added book and music result and re-set them to "wanted" again. The end result again is lines of code below displayed in an unhealthy red background. Help please :(


Raw log message:

{
    "msg": "Error during downloadWrapperSingle of Newznab (Default) \nError: No JSON object could be decoded\n\nTraceback (most recent call last):\n  File \"/opt/share/XDM/xdm/plugins/meta.py\", line 159, in outer\n    return run(*args, **kwargs)\n  File \"/opt/share/XDM/xdm/plugins/bases.py\", line 526, in downloadWrapperSingle\n    res = self._searchForElement(*args, **kwargs)\n  File \"/opt/share/XDM/plugins/Indexer/Newznab-de_lad1337_newznab-0_5/Newznab.py\", line 71, in searchForElement\n    response = r.json()\n  File \"/opt/share/XDM/lib/requests/models.py\", line 629, in json\n    return json.loads(self.text or self.content, **kwargs)\n  File \"/opt/lib/python2.7/json/__init__.py\", line 326, in loads\n    return _default_decoder.decode(s)\n  File \"/opt/lib/python2.7/json/decoder.py\", line 366, in decode\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n  File \"/opt/lib/python2.7/json/decoder.py\", line 384, in raw_decode\n    raise ValueError(\"No JSON object could be decoded\")\nValueError: No JSON object could be decoded\n\nNew value:[]\nTraceback:\nTraceback (most recent call last):\n  File \"/opt/share/XDM/xdm/plugins/meta.py\", line 159, in outer\n    return run(*args, **kwargs)\n  File \"/opt/share/XDM/xdm/plugins/bases.py\", line 526, in downloadWrapperSingle\n    res = self._searchForElement(*args, **kwargs)\n  File \"/opt/share/XDM/plugins/Indexer/Newznab-de_lad1337_newznab-0_5/Newznab.py\", line 71, in searchForElement\n    response = r.json()\n  File \"/opt/share/XDM/lib/requests/models.py\", line 629, in json\n    return json.loads(self.text or self.content, **kwargs)\n  File \"/opt/lib/python2.7/json/__init__.py\", line 326, in loads\n    return _default_decoder.decode(s)\n  File \"/opt/lib/python2.7/json/decoder.py\", line 366, in decode\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n  File \"/opt/lib/python2.7/json/decoder.py\", line 384, in raw_decode\n    raise ValueError(\"No JSON object could be decoded\")\nValueError: No JSON object could be decoded\n", 
    "lvl": "ERROR", 
    "caller": {
        "line": 166, 
        "file": "/opt/share/XDM/xdm/plugins/meta.py", 
        "fn": "outer"
    }, 
    "data": {}, 
    "time": "2013-09-20 12:29:14.321882"
}

System info:

  • XDM version: Zim 0.5.9
  • Updater version: 808fd07
  • Install type: Git
  • System: Linux
  • Release: 2.6.32.12
  • Machine: armv5tel
  • Python_version: 2.7.3
  • Python_implementation: CPython
@lad1337
Copy link
Owner

lad1337 commented Sep 21, 2013

i am sorry i could not reproduce the issue https://www.usenet-crawler.com works fine for me

i use

Host:                   https://www.usenet-crawler.com/
ApiKey:                 *my api key*
Port:                   *nothing*
Retention:              1200
Verify Ssl Certificate: *checked*

but i found a bug with the "test connection" call if the plugin instance is not Default ... the fix is pushed to the development branch

@sukhysall
Copy link
Author

I appreciate your time looking into this. Thank you kindly. I have a new
synology box so will attempt the same on a fresh clean build. Would you
recommend I install xdm from the package center or using git clone method.

Lad1337 I just have to say I think you have developed the best application
ever. Once tv support is in there I can remove sickbeard and use xdm
exclusively.

At the moment I have used my synology to host comics (with Mylar), books
(managed myself), tv (with sickbeard). I didn't really get along with
headphones so I had no music management and I never used couch potato for
movies either. You've produced the holy grail of applications

Keep up the good work. And please let me know about the best install
method. Thanks again.

Sukhy
On 21 Sep 2013 17:49, "lad1337" notifications@github.com wrote:

i am sorry i could not reproduce the issue https://www.usenet-crawler.comworks fine for me

i use

Host: https://www.usenet-crawler.com/
ApiKey: my api key
Port: nothing
Retention: 1200
Verify Ssl Certificate: checked

but i found a bug with the "test connection" call if the plugin instance
is not Default ... the fix is pushed to the development branch


Reply to this email directly or view it on GitHubhttps://github.com//issues/56#issuecomment-24866175
.

@lad1337
Copy link
Owner

lad1337 commented Sep 21, 2013

Thank you so much ! this means a lot to me :)

I asked @Diaoul what he thinks about the install method since he is the one who created the package for synology
what i can say is that XDM is able to update with git but i dont know if thats works / or how it reacts to a synology install ... i don't have a synology so i dont know but i am sure @Diaoul will have an answerr

@Diaoul
Copy link

Diaoul commented Sep 21, 2013

XDM is available in beta here
Add http://packages.synocommunity.com/?beta=1 to your Package Center to install it from the Package Center.

@sukhysall
Copy link
Author

Guys I identified the issue courtesy of someone who posted a similar issue here.. I did not choose the "Get categories" option. My category names were "Book" instead of "2000" etc. I have seen successful snatching since then and nzbget is successfully downloading the files.

thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants