Kodi Community Forum

Full Version: xbmc.executeJSONRPC() returns "error" "Method not found."
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This may be an issue.

I was troubleshooting an exception thrown by an addon script.favourites.

The problem is that the addon makes a call to xbmc.executeJSONRPC() and expects to get "result" back.  Instead it is getting "error" and "Method not found."

From testing/log inspection, it appears that this return is generated if the addon runs before interface is initialized m_initialized is true and CJSONRPC::Initialize() logs "JSONRPC v%s: Successfully initialized"

This only started happening recently (last week or so).

Are addons supposed to query the JSON-RPC interface to see if it's up as a general rule and handle the error (the error doesn't seem to indicate what the problem is -- just method not found)?  It seems like maybe the Kodi side of the interface could handle this?

scott s.
.