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

All methods return "Unknown method" error #38

Open
PhilipJFry2995 opened this issue Aug 3, 2023 · 3 comments
Open

All methods return "Unknown method" error #38

PhilipJFry2995 opened this issue Aug 3, 2023 · 3 comments
Labels

Comments

@PhilipJFry2995
Copy link

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

@idlesign
Copy link
Owner

idlesign commented Aug 4, 2023

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.

@i9bonsai
Copy link

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

@zakkarry
Copy link

zakkarry commented Oct 5, 2024

The likely cause, if the WebUI plugin is running, is that the WebUI itself is not connected to the RPC daemon.

Load the WebUI and connect it. This solved this for me.

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

No branches or pull requests

4 participants