Code Monkey home page Code Monkey logo

Comments (21)

balloob avatar balloob commented on August 16, 2024

What version of Safari? And can you test Firefox?

from dashboard.

ilium007 avatar ilium007 commented on August 16, 2024

Safari: Version 13.1.3 (15609.4.1)

from dashboard.

balloob avatar balloob commented on August 16, 2024

I only have Safari 14.1.1 (16611.2.7.1.4) locally on a Mac but am unable to reproduce it.

I ran it this way as per the docs:

docker run --rm -p 6052:6052 -e ESPHOME_DASHBOARD_USE_PING=true -v "${PWD}":/config -it esphome/esphome

In Safari, can you go to develop -> Show JavaScript console and refresh the page. Do you see any errors?

from dashboard.

OttoWinter avatar OttoWinter commented on August 16, 2024

Related: esphome/issues#2174
Maybe interesting snippet:

everything works if i go to the ip:port of esphome 192.168.1.xx:6052, it just doesn't work in a frame within home assistant

from dashboard.

ilium007 avatar ilium007 commented on August 16, 2024

ok... so I left a small bit of info out of the original issue. I run the swag (https://hub.docker.com/r/linuxserver/swag) reverse proxy for esphome dashboard and homeassistant (takes care of my LetsEncrypt SSL certs). If I connect direct to the docker instance on port 6052 it all works.

image

from dashboard.

ilium007 avatar ilium007 commented on August 16, 2024

What version of Safari? And can you test Firefox?

Worked in Firefox via the SSL reverse proxy

from dashboard.

ilium007 avatar ilium007 commented on August 16, 2024

I only have Safari 14.1.1 (16611.2.7.1.4) locally on a Mac but am unable to reproduce it.

I ran it this way as per the docs:

docker run --rm -p 6052:6052 -e ESPHOME_DASHBOARD_USE_PING=true -v "${PWD}":/config -it esphome/esphome

In Safari, can you go to develop -> Show JavaScript console and refresh the page. Do you see any errors?

The only error I see in the Javascript console is this:
image

from dashboard.

erikpendragon avatar erikpendragon commented on August 16, 2024

i have the same issue, esphome/issues#2174
running safari Version 13.1.2 (13609.3.5.1.5)
safari useragent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
javascript console i get 1 error and two warnings

[Warning] The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. (app.bcb38ac1.js, line 849)
[Warning] The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. (entrypoint.0d3c68f7.js, line 4171)
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (index-7c27abab.js, line 0)

from dashboard.

balloob avatar balloob commented on August 16, 2024

@erikpendragon there is no authorization on the dashboard so maybe you also forgot to mention that you're running something custom in front of it?

from dashboard.

erikpendragon avatar erikpendragon commented on August 16, 2024

i have nginx setup as per the add-on instructions with duckdns

domain: '!secret dns_domain'
certfile: fullchain.pem
keyfile: privkey.pem
hsts: max-age=31536000; includeSubDomains
cloudflare: false
customize:
active: false
default: nginx_proxy_default*.conf
servers: nginx_proxy/*.conf

from dashboard.

ilium007 avatar ilium007 commented on August 16, 2024

@erikpendragon there is no authorization on the dashboard so maybe you also forgot to mention that you're running something custom in front of it?

I run Authelia with SWAG. Authelia provides the authentication for the reverse proxy. It worked fine during the 1.18.0 to 1.19.2 upgrade using Chrome and Firefox, it is only Safari that is causing issues.

from dashboard.

balloob avatar balloob commented on August 16, 2024

Oh you run Authelia in front of it too? Another "small bit" you forgot to mention.

I am going to take a break from this issue as I feel like I am being sent on a goose chase.

from dashboard.

erikpendragon avatar erikpendragon commented on August 16, 2024

mine worked fine before 1.19.x+ as well

from dashboard.

balloob avatar balloob commented on August 16, 2024

Here is how to fix it home-assistant/frontend#3259

Feel free to open a PR.

from dashboard.

erikpendragon avatar erikpendragon commented on August 16, 2024

Here is how to fix it home-assistant/frontend#3259

Feel free to open a PR.

i am not sure how this fixes it, it looks to be a code change to the front end. am i expected to pull this myself and request it to be merged back in corrected? how does this issue become a fix?

from dashboard.

ilium007 avatar ilium007 commented on August 16, 2024

It's been raised here as well: esphome/issues#2174

from dashboard.

xfader2018 avatar xfader2018 commented on August 16, 2024

I have same problem since couple of versions ago.
How to fix it? The link above doesn't really tell how to fix.

from dashboard.

ilium007 avatar ilium007 commented on August 16, 2024

I changed to Firefox and it’s working again.

from dashboard.

xfader2018 avatar xfader2018 commented on August 16, 2024

Yes, Chrome works also but it should work in Safari as well as it did before.

from dashboard.

ilium007 avatar ilium007 commented on August 16, 2024

Agree

from dashboard.

ilium007 avatar ilium007 commented on August 16, 2024

Was this fixed or just closed?

from dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.