Posts: 17
Joined: Jul 2013
Reputation:
0
Hello!
I'm working on my Delphi Component currently, and I'm getting a Method Not Found when trying to query for JSORPC.GetConfiguration.
I'm issuing:
{"jsonrpc": "2.0", "method": "JSONRPC.GetConfiguration" , "id": "1"}
and it is returning:
{"error":{"code":-32601,"message":"Method not found."},"id":"1","jsonrpc":"2.0"}
Build Information:
XBMC 12.2 GIT:20130502-32b1a5e (Compiled May 2 2013);
Running Windows Version.
Any thoughts?
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Right now JSONRPC.GetConfiguration only works on transport layers that support notifications because all it can do is tell you which notifications you will receive. Since HTTP doesn't support notifications it doesn't support JSONRPC.GetConfiguration.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 17
Joined: Jul 2013
Reputation:
0
Thanks!
Does this mean I would be able to receive a notification if I was using TCP or WebSockets?
Cheers
Posts: 5,184
Joined: Jan 2009
Reputation:
131
yes you would receive notifications for all kinds of events like starting/pausing/resuming/stopping playback etc.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 17
Joined: Jul 2013
Reputation:
0
Thanks for this.
I've updated my Component to support either a TCP or HTTP connection, and I will make it so that that it throws an exception if you try
to retrieve that information with a HTTP Connection.
Posts: 146
Joined: Mar 2015
Reputation:
6
axa88
Senior Member
Posts: 146
2015-05-07, 00:54
(This post was last modified: 2015-05-07, 00:55 by axa88.)
Am I nuts or has this been removed from the latest JSONRPC.GetConfiguration? "version": "6.21.2"
I dont see it returned using introspect, yet both types "Configuration" and "Configuration.Notifications" are still in introspect but used by nothing other than JSONRPC.GetConfiguration...
of course the wiki doesn't mention this so would it be deprecated?
i can still call the method and it returns something so im confused...
Posts: 5,184
Joined: Jan 2009
Reputation:
131
I don't understand your problem/question. What do you mean by "has this been removed from the latest JSONRPC.GetConfiguration?". Has what been removed?
What transport layer protocol are you using? HTTP, TCP, WebSockets or our python API?
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Yes you won't see them when using HTTP in your webbrowser but you will be able to use them over TCP.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.