deluge-webapi
deluge-webapi copied to clipboard
All methods return "Unknown method" error
I am using
- Windows 10
- deluge-2.1.1-win64
- WebAPI-0.4.0-py3.7
I have enabled WebUI and WebApi plugins. Login works and I get _session_id in Postman
After that I try to get api version, but the result is
{ "result": null, "error": { "message": "Unknown method", "code": 2 }, "id": 1 }
my request is
POST localhost:8112/json
headers
Content-Type: application/json Accept: application/json
{ "id": 1, "method": "webapi.get_api_version", "params": [] }
Same for get_torrents
You may try to use the following snippet: https://github.com/idlesign/deluge-webapi/blob/master/webapi/test.py
Unknown method in common case designates that WebApi is not enabled.
In case of a client-server Deluge setup the note from https://dev.deluge-torrent.org/wiki/Plugins#Client-ServerSetups might be of help.
I also encounter this exact same error, machine specs, and circumstances are identical to author of issue