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

socket api not working #828

Open
4 tasks done
ThatGravyBoat opened this issue Nov 12, 2024 · 5 comments
Open
4 tasks done

socket api not working #828

ThatGravyBoat opened this issue Nov 12, 2024 · 5 comments
Labels
bug Something isn't working iz: websocket izanami Issues related to the Izanami middleware

Comments

@ThatGravyBoat
Copy link

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I have checked that the correct behavior occurs on Apple Music Web (if applicable).
  • I have verified that my issue is with a supported version and that it is with the desktop app (Support for other areas can be found in our Discord / on the appropriate repo).

Download Source

Itch

Operating System

EndervoursOS

Commit Hash

d8f7fc7d2ef773260fb2cf8aef1bbcd5c87a3381

Connect Instance ID

No response

Build Timestamp

1723814509407

Describe the Bug

I am trying to update my usage of the APIs to the latest socket API but I can not get any responses from Cider socket.io at all, it connects and that is it, no events afterwards. The normal rest API still works fine though.

Steps to Reproduce

You can use this simple html I made that I have been using to test and nothing happens, the code is parts taken from the CiderDeck plugin.

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Document</title>
</head>
<body>
<script src="https://cdn.socket.io/4.7.5/socket.io.min.js" integrity="sha384-2huaZvOR9iDzHqslqwpR87isEmrfxqyWOF7hr7BY6KG0+hVKLoEXMPUJw3ynWuhO" crossorigin="anonymous"></script>
<script>
    const CiderApp = io('http://[::1]:10767', {
        reconnectionAttempts: Infinity,
        reconnectionDelay: 1000,
        timeout: 10000 // 10 seconds timeout
    });

    CiderApp.on('connect', () => {
        console.log("connecting!")
        CiderApp.on("API:Playback", info => {
            console.log(info);
        });
    });
</script>
</body>
</html>

Anything else?

No response

@ThatGravyBoat ThatGravyBoat added the bug Something isn't working label Nov 12, 2024
Copy link

Hello @ThatGravyBoat 👋

We really appreciate you taking the time to report this issue, please double check your issue to make sure you are clear and concise in your description. This will help us to help you as quickly as possible.

We'd like to ask you be patient and we will get back to you as soon as we can.

In the meantime, take a look at our FAQs which may answer your question.

Thanks again and we hope you enjoy the app! 😃

@cryptofyre
Copy link
Member

cryptofyre commented Nov 12, 2024

IPV6 doesn't work correctly I believe, not sure why.

Doing 127.0.0.1 should though.

@ThatGravyBoat
Copy link
Author

IPV6 doesn't work correctly I believe, not sure why.

Doing 127.0.0.1 should though.

with 127.0.0.1 & localhost im getting a 404s with the response:

{"message":"Route GET:/socket.io/?EIO=4&transport=polling&t=PCUbSTQ not found","error":"Not Found","statusCode":404}
{"message":"Route GET:/socket.io/?EIO=4&transport=polling&t=PCUbysh not found","error":"Not Found","statusCode":404}

@cryptofyre
Copy link
Member

Did you enable WebSockets in the Connectivity tab and if so what version & OS are you running.

@ThatGravyBoat
Copy link
Author

The websockets is enabled, and I am running on EndevoursOS and app version 2.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iz: websocket izanami Issues related to the Izanami middleware
Projects
Status: Backlog 📖
Development

No branches or pull requests

3 participants