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

[supervisor.api.ingress] No valid ingress session None #5045

Open
slavendam opened this issue Apr 26, 2024 · 1 comment
Open

[supervisor.api.ingress] No valid ingress session None #5045

slavendam opened this issue Apr 26, 2024 · 1 comment

Comments

@slavendam
Copy link

slavendam commented Apr 26, 2024

Describe the issue you are experiencing

Hi,
I've created add-on from web app. I want to display this app in card/panel of HA and displaying works, but...

This is config I use:

type: iframe
url: /api/hassio_ingress/Vp_6ov3A_ckt441nZWPlhgK2UoAjDL8VDzgWQkuhYXc/

This URL is iframe URL.
Problem is when I log in to HA on browser where I didn't logged in before. In that case ingress_session cookie is missing, it is still not generated.
In that case I'm getting "401 (Unauthorized)", and in Supervisor logs I get "[supervisor.api.ingress] No valid ingress session None"

If I open add-on with steps "Settings->Add-ons-> open add-on -> OPEN WEB UI" this ingress_session is generated and now everything works as expected in card/panel also.
If I delete cookie from browser cache it still works, so it seems that session is stored somewhere in backend and connected with hass_token?

My question:

is there a way on HA to generate ingress_session on login or with card initialization?
.

There is second option. If I use this config (with direct add-on URL):

type: iframe
url: /8e14ce16_glamos_klet3d/ingress

It works correctly (opens add-on/app), but than inside of card/panel I have additional HA sidebar. Is there a way to avoid this sidebar?
image

Thanks!

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

  1. Install and setup add-on
  2. Add add-on as iframe to card/panel
  3. Login from incognito browser
  4. It will return 401
  5. Open add-on from Settings or sidebar
  6. Now it works in card/panel also

Anything in the Supervisor logs that might be useful for us?

2024-04-26 09:21:05.659 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None

System Health information

System Information

version core-2024.4.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.1.73-haos-raspi
arch aarch64
timezone Europe/Zagreb
config_dir /config
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.2
update_channel stable
supervisor_version supervisor-2024.04.0
agent_version 1.6.0
docker_version 25.0.5
disk_total 28.0 GB
disk_used 4.3 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Homeway (1.1.6), GLAMOS Klet3D (1.0.108), File editor (5.8.0)
Dashboards
dashboards 2
resources 0
views 3
mode storage
Recorder
oldest_recorder_run April 22, 2024 at 4:06 PM
current_recorder_run April 25, 2024 at 10:20 PM
estimated_db_size 0.80 MiB
database_engine sqlite
database_version 3.44.2

Supervisor diagnostics

No response

Additional information

No response

Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant