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

Web Interface not working on Safari/iOS #507

Closed
xoseperez opened this issue Feb 2, 2018 · 7 comments
Closed

Web Interface not working on Safari/iOS #507

xoseperez opened this issue Feb 2, 2018 · 7 comments
Labels
bug duplicate This issue or pull request already exists help wanted Extra attention is needed web interface websockets

Comments

@xoseperez
Copy link
Owner

As reported by @serhatozkara.

The web management interface does not work from Safari. It returns a websocket 401 error.

This was allegedly solved a few week ago. Check #295. But a number of comments in issues #295, #506 and #384 suggest the opposite.

I cannot test this myself, I will appreciate help from anyone willing to test/hack the web.ino and websockets.ino modules.

@Cabalist
Copy link
Contributor

Cabalist commented Feb 2, 2018

I've previously posted the things I see in a browser on the other thread. Is there a serial terminal I can watch for debugging output?

Would a remote session be of any value? I could provide you with a macOS with a fresh install and a couple of espurna devices on a network.

@xoseperez
Copy link
Owner Author

If building the firmware yourself, please double check you have the proper version of ESPAsyncWebServer. There is an issue with WebSocket authentication (!!) on the latest versions. The recommended version is me-no-dev/ESPAsyncWebServer@313f337.

@chryss44
Copy link

chryss44 commented Feb 9, 2018

1.12.1 work fine with SAFARI on Apple but not 1.12.3 :-(.

@thebradleysanders
Copy link

The current version of Espurna seems to open fine on an Ipad in Safari, but not on Iphone.

@tripplet
Copy link

tripplet commented Mar 13, 2018

I have the same problem with safari 11.0.3 (13604.5.6) on macOS High Sierra with the official ESPURNA v1.12.4.
It looks like the problem is the authentication of the web socket connection.

Safari reports: [Error] WebSocket connection to 'ws://device.local/ws' failed: Unexpected response code: 401

This seems to be related to https://bugs.webkit.org/show_bug.cgi?id=80362.
Also when I disable "WS Auth" in the web ui safari works again.
Maybe there is a workaround to use another way of authentication for the websocket connection until this is properly fixed in safari.
Based on the bug history I would not count on a fix in webkit.

@ber-red
Copy link

ber-red commented Mar 29, 2018

same Problem here:
A) Safari 11.0.3 (12604.5.6.1.1) on macOS Sierra with the official ESPURNA v1.12.4.
After entering the credentials I get these 2 Errors:

  1. [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (favicon.ico, line 0)
  2. [Error] WebSocket connection to 'ws://<host ip address>/ws' failed: Unexpected response code: 401

and a blank page (don't mind the favicon.ico "error", i am fine with that)
B) Safari version ?? on iOS 11.2.6 (15D100)
After entering the credentials I get a blank page (not sure if i could to do any debug on my iPhone)

@xoseperez
Copy link
Owner Author

xoseperez commented Apr 4, 2018

At the moment, the WS Auth setting in the web interface is the way to solve this issue.
Please check #667 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug duplicate This issue or pull request already exists help wanted Extra attention is needed web interface websockets
Projects
None yet
Development

No branches or pull requests

6 participants