Skip to content

Error Using Exampe Procided: No JSON object could be decoded #4

Description

@DrIanGregory

Hello,
Windows 7, Python 2.7.10.
I executed provided example (below).
Error response:
"No JSON object could be decoded".

Full message:

Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\site-packages\fanart\core.py", line 44, in response
raise ResponseFanartError(str(e))
ResponseFanartError: No JSON object could be decoded

regards,
Ian.

from fanart.core import Request
import fanart
request = Request(
    apikey='I PUT A KEY IN HERE',
    id='24e1b53c-3085-4581-8472-0b0088d2508c',
    ws=fanart.WS.MUSIC,
    type=fanart.TYPE.ALL,
    sort=fanart.SORT.POPULAR,
    limit=fanart.LIMIT.ALL,
)
print request.response()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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