-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No JSON object could be decoded #15
Comments
I'm also getting this issue after using the script without issue for over a year. |
Is this script abandoned? I'm once again getting this error and having difficulty troubleshooting it. |
@Twiggy-GH Is there any stack trace with that error? Or line number? Based on the "No JSON object could be decoded", I suspect it could be one of the calls to the Tautulli API is returning invalid JSON. Maybe it's partially valid and the default parser of the requests module is possibly more strict. Another possibility is the tautulli API is erroring in some way eg. returning a 500 and the returned text isn't json. Could you try running the following calls and running a JSON validator on each return results? No need to post the JSON return results here as it's full of information you would want to remove. I'm making an assumption that you might be using http. Default port should be 8181. You can just throw these in your browser since it is a GET request.
Edit: As an example, one of mine would be http://monitor-pi:8181/api/v2?apikey=SuperSecretApiKey&cmd=get_users . In this case, my hostname is monitor-pi and my port is 8181 and my API key is SuperSecretApiKey (Not actually) Another thing you could try is to fully test the JSON decoding calls with your setup using the following python script:
You will have to pip install 'requests' since it is a third party module. And to get you Tautulli API Key, go to Settings -> Web Interface and scroll to the bottom. However you are running this exporter, make sure you have the right Tautulli API Key. |
getting a return of No JSON object could be decoded
i know im missing something simple
The text was updated successfully, but these errors were encountered: