deluge-webapi icon indicating copy to clipboard operation
deluge-webapi copied to clipboard

All methods return "Unknown method" error

Open PhilipJFry2995 opened this issue 2 years ago • 3 comments

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

PhilipJFry2995 avatar Aug 03 '23 16:08 PhilipJFry2995

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.

idlesign avatar Aug 04 '23 09:08 idlesign

I also encounter this exact same error, machine specs, and circumstances are identical to author of issue

i9bonsai avatar Aug 16 '23 08:08 i9bonsai