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

Websocket infinite reconnection on desktop web browsers, when accessing to an iPhone it works #106

Open
SpaghettiC0des opened this issue Oct 16, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@SpaghettiC0des
Copy link

What happened

This is similar to Arksine/moonraker#454, but it works on an iPhone, but when you access it on a MacOS, regardless of the browser used, it will result in an infinite loop of handshake and disconnection.

You can see in the logs the iPhone is working correctly while the MacOS web is dropping the connections without any reason.

What did you expect to happen

It should work on port 80 on desktop web browsers.

How to reproduce

  1. Follow RatRig's installation instructions https://os.ratrig.com/docs/introduction/
  2. After the setup, open http://ratos.local or http://<IP_ADDRESS>.
  3. Open the networks tab, and see the WebSocket infinite reconnection request
  4. Only port 80 does this, but when you visit port 7125, or ratos.local/configure it works perfectly.

Additional information

See ticket Arksine/moonraker#726

And comment from the maintainer (Arksine)

@SpaghettiC0des SpaghettiC0des added the bug Something isn't working label Oct 16, 2023
@miklschmidt
Copy link
Member

if /configure works, then it points to a mainsail issue since the configurator connects to moonraker as well. However, i haven't heard about this particular problem before, it could be a local issue, i don't know. Unless you have some indication that it's a RatOS specific problem, there's not much i can do. Have you tried a plain MainsailOS installation?

@SpaghettiC0des
Copy link
Author

@miklschmidt , not sure if you saw it, but the Moonraker author asked me to submit an issue here because RatOS might be using an NGINX reverse proxy.

I added a comment there Arksine/moonraker#454, where the hosted mainsail works.

I'll try plain MainsailOS tomorrow.

@miklschmidt
Copy link
Member

miklschmidt commented Oct 17, 2023

Same reverse proxy setup as MainsailOS, also it works for everyone else. Seems to be MacOS specific?

@SpaghettiC0des
Copy link
Author

Same reverse proxy setup as MainsailOS. Also it works for everyone else. Seems to be MacOS specific?

Maybe? I'll try an older intel MacBook tomorrow, both of my M1 Macs are showing the same behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants