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

[BUG] Method not implemented error when using jsonrpc #9319

Open
devhl-labs opened this issue Sep 21, 2024 · 0 comments
Open

[BUG] Method not implemented error when using jsonrpc #9319

devhl-labs opened this issue Sep 21, 2024 · 0 comments

Comments

@devhl-labs
Copy link

Describe the bug

I just migrated from an old version of libreelec to this version https://releases.libreelec.tv/LibreELEC-RPi4.aarch64-12.0.0.img.gz
Now when I make a jsonprc request, I get a 501 error. Am I doing something wrong, or is this a bug?

const showNotification = {
    "jsonrpc": "2.0",
    "method": "GUI.ShowNotification",
    "params": {
        "title": "AutoPi",
        "message": `Playing: ${request.play}`,
        "displaytime": 15000
    },
    "id": 1
};

const url = `http://${ip}:${port}/jsonrpc`;

fetch(url, {
    method: 'POST',
    body: JSON.stringify(showNotification),
    headers: {
        'content-type': 'application/json'
    }
})
    .then(function (response) {
        console.log(reponse);                // 501
        return response.json();
    })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant