Skip to content
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

Cannot connect to SabNZBD #76

Open
robertodevivo opened this issue Mar 25, 2013 · 1 comment
Open

Cannot connect to SabNZBD #76

robertodevivo opened this issue Mar 25, 2013 · 1 comment

Comments

@robertodevivo
Copy link

the log lists: http://0.0.0.0:8092/sabnzbd/api?mode=get_config&apikey=*******************************§ion=misc&keyword=script_dir

When I access the url it gives an API key incorrect error. if I remove the '§ion=misc' part it gives me some acces... I don't know what happens exactly. It looks like the URL is malformed in some way.

Using version 1.1.17.6 on a Synology

@alo0
Copy link

alo0 commented Nov 17, 2014

I have the same error message here. So I tried to investigate. I don't know anything about Python, but the problem seems to be:
GameTasks.py (l.368):
url = "http://" + sabnzbdHost + ":" + sabnzbdPort + "/sabnzbd/api?mode=get_config&apikey=" + sabnzbdApi + "&section=misc&keyword=script_dir"

&section is unescaped and so translated to §ion

a quick fix is to modified the line to:
url = "http://" + sabnzbdHost + ":" + sabnzbdPort + "/sabnzbd/api?mode=get_config&apikey=" + sabnzbdApi + "&ampsection=misc&keyword=script_dir"

A better way would be to escape the entire line before opening it but again, I don't know anything about Python.

Source: https://www.inkling.com/read/programming-python-mark-lutz-4th/chapter-15/more-on-html-and-url-escapes

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

No branches or pull requests

2 participants