-
Notifications
You must be signed in to change notification settings - Fork 331
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
Login attempt or request with invalid authentication #3138
Comments
Same for me Home Assistant Core Version And using nabu casa |
Still happening:
|
I have the sameish thing : |
Do you have widgets in the lock screen which renders a template? |
This is my code for my widget - @bgoncal : first : |
@bgoncal what i forgot to add is that i run this on both mine and my partners phone, she is not an admin in homeassistant and for her the widget dont work and it's from her device i'm reciveing the failed login, on mine (admin) it's no problem |
When she opens the App, can she uses it normally? Could you edit her widget template and put something else there? After 15 minutes if it doesn't display the correct information go to companion app settings >> debugging >> export logs and submit it here https://forms.gle/Uoqz127Phx4mMTpS6 |
changed it to {{ state_attr('sensor.norma_bach_jessen_last_sleep', 'end')[11:16] }}, will submit in 15 minutes it it's still failing to display, thank you! |
I've sent you the logs @bgoncal |
Requested access |
@simon-bd I see |
No other restrictions. Using nabucasa url when not at home otherwise local ip |
I don't see a direct relation to that in the logs, so perhaps, can you try removing the server from the App, force closing it and adding it back? Was it configured a long time ago? |
Another one:
Let me know if there is any further info I can gather to figure this out. |
@bgoncal tried multiple times to uninstall reconfigure server etc. but still get the same result |
From her phone logs: From HA logs: |
@simon-bd Can you temporaly make your wife admin to see if thats the problem? As fast as I was aware, Home Assistant didn't have user access level linked o the API |
@Nezz no chance that you have the App setup on another device that is leading to this log? Like a secondary phone for example. If you update the testflight version now does it also reflect in the logs? |
after i have updated her account to admin the widget is rendering, she is on the testflight version on her phone, can try to update it if you included some new logging in 2025.1.1 (2025.1007), but seems like he account was restriced when she was not an admin. can i use the same url for the logs if you need them? |
@bgoncal I only use the TestFlight version on my personal phone, so I know that the websocket auth errors come from there. - metadata: {}
data:
message: Did you forget to turn the lights off?
data:
actions:
- action: "{{ action_on }}"
title: Leave the lights on
icon: sfsymbols:lightbulb
- action: "{{ action_off }}"
title: Turn the lights off
icon: sfsymbols:lightbulb.slash
action: notify.mobile_app_adam_s_iphone_15_pro
- alias: Wait for a response
wait_for_trigger:
- event_type: mobile_app_notification_action
event_data:
action: "{{ action_on }}"
trigger: event
- event_type: mobile_app_notification_action
event_data:
action: "{{ action_off }}"
trigger: event |
@simon-bd I just checked with Core developers and indeed, templating is restricted to admin users, I had no idea, for now all I can do is to add a warning in the App, meanwhile I will take that in consideration for future implementations, there is a "widget builder" coming which will facilitate all this process. |
@bgoncal Good to know, she'll have the priviliage of being admin until you are ready with more, the builder sounds amazing! thank you |
@Nezz well, it shouldn't be the root cause... maybe it is the trigger but the issue must be somewhere else, can you try what I asked in the previous comment? |
Yes, the scripts work from iOS widgets (although I did not use them previously). The invalid auth error appears every couple of days and using widgets did not trigger it. |
My widgets stopped working the day after I set them up (I get a notification that it was executed, but it wasn't really). However, there are no authentication errors coming from them. |
Still happening:
|
@Nezz Latest testflight build is 2025.1.1, are you on 2025.1? |
Yes, I switched from TestFlight to the regular version to see if it helps. |
iOS device model, version and app version
Model Name: iPhone 15 Pro
Software Version: iOS 18.1
App version: 2024.934
Home Assistant Core Version
2024.11.1
Describe the bug
Every now and then this notification pops up in Home Assistant:
When checking the logs, this comes from one of my iOS devices:
The iOS version and the TestFlight build number make it clear that it's me and not someone else trying to hack my network.
So far every time I saw the error it was pointing to
/api/websocket
To Reproduce
Sadly I don't have repro steps, but it seems to affect a large number of people:
#2486
https://www.reddit.com/r/homeassistant/comments/1gjhlqt/login_attempt_failed/
Expected behavior
Screenshots
Additional context
I use Nabu Casa. No custom networking setup.
The text was updated successfully, but these errors were encountered: