-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Recurrent Login attempt or request with invalid authentication #90117
Comments
Update on that issue, still relevant. I've tried to purge all Refresh Tokens I had, without any success. I have no idea what really cause the issue, since it was perfectly working until the upgrade. |
After an upgrade to 2023.3.6, the issue is still there. I've seen a lot of reports on the forum about the same issue, would be really appreciated if someone can have a look at it. |
I do have the same issue: Home Assistant 2023.4.2
Does anyone knows what I can do? Thanks Vic |
I'm experiencing the same issue when attempting to link the home assistant alexa skill from the alexa app. I can log in using my public home assistant URL in the browser with the exact same credentials without issue. |
same error |
Had the same issue after attempting to call for my lights using my stream deck today, I am assuming a new update has broken something? |
Hi, I have the same issue 20230503.3 : 2023.5.4 i don't have any file named : ip_bans in my config folder. Logger: homeassistant.components.http.ban Login attempt or request with invalid authentication from 192.168.1.254 (192.168.1.254). Requested URL: '/auth/token'. (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36) Some news on it ? |
Currently on 2023.5.4, the error is still there. |
I have the same error. I cannot access from LAN, only from WAN. And not ip_ban:yaml file is generated. It seems like all local IPs are banned. |
Currently have this issue on 2023.7.1 :( |
I have the same problem while trying to authorize the alexa skill. Login in the browser works well. |
Same error here :( [homeassistant.components.http.ban] Login attempt or request with invalid authentication from customer.sntochl1.pop.starlinkisp.net Requested URL: '/auth/token'. (Home Assistant/2023.4 (io.robbie.HomeAssistant; build:2023.460; iOS 16.5.1) Alamofire/5.6.4) |
same error in 20230705.1: |
In case this helps anyone else, my issue was that I was using a password manager (LastPass) when linking the skill in the Alexa app and even though it filled in the username and password on the home assistant login form, it must not have been triggering a changed event because it was not submitting any credentials. As soon as I focused on the password field, added a space and deleted a space and resubmitted the form, it worked. |
Thank you so much! Following your instruction solved my problem. In my case, I was using Bitwarden to fill in the password. |
I just want to mention that this solved my issues as well. I've had this issue from time to time across different Home Assistant versions, when logging in on different machines using different browsers, and I've never been able to figure out why some were getting IP blocked shortly after login and why others didn't . After reading this I realized that I was using either Safari autofill or Strongbox autofill when entering the credentials every time my IP was blocked. I copy-pasted the credentials to the Home Assistant login form instead of using the Safari autofill on one of the machines that were continuously IP blocked directly after login, and when doing this manually instead of with autofill the login was successful and the authentication persisted without getting IP blocked.. |
Having the same issue with latest updates as of today. |
Was also using a password manager (bitwarden) to auto-fill, manually filling fields also resolved for me on mobile FF which is the only place it was having issues. Thank you @blackwood821! |
Had the same problem. In the browser console log I found that there was no connection to the web socket. I adjusted the availability of wss, the problem was solved. Maybe it will help someone |
Just started getting this issue This notification comes up when I play a track from my mobile to the Sonos play 1 not touching HA I do have the Sonos integration but not playing from there |
could you add some details about how you adjust the availability of wss? Thanks! |
Same issue here. Any news on a solution progress? |
I moved my docker container from 1 to another machine and then this started to happen.. |
Not sure what caused this for me. UI stopped responding so I refreshed the tab. It accepts a login and then just goes round in a loop. Restarted container, deleted all cookies, no difference. For me, updating to 2024.5.1 was the fix. |
Got the same issue, with Bitwarden autofill it did not work, while copying and pasting the username and password works... |
I am pretty sure now that the update itself wasn't the fix, it was the update process that did something to un-block my IP. |
I have the same issue. I am running HASS in Docker container. I also have Frigate integration enabled. |
I'm stuck in a loop with this issue The only "progress" I've made is updating my http:
server_port: 8124 Its not really a fix - but something is messed with tokens |
I am also experiencing this problem on the latest version, in the process of testing switching to a firefox based browser, this is rather disappointing that an issue of this level of importance has existed this long without any apparent fix or am I missing something? |
Do you have the Alexa media player integration. I think there is a bug with it |
It's not "an issue", I don't think. There are multiple causes for this error, the "real bug" is probably that the various causes don't log their own specific messages. |
Has this issue been resolved? It doesn't work from any browser, no passwords are saved, I have to write them in the HA login form. |
@Z0472 your login coming from a public IP so the "obvious" thing to check is, does the user have "Local access only" ticked? |
I have similar issue . HA app and web login works fine on my MacBook,ipad, other iPhone and Samsung tablet |
Thanks for the tip. Where is this setting? |
Has anyone figured this out? I'm experiencing this with Cloudflare tunnel on the latest version of HA (2024.12), both cloudflare and HA are running in docker. |
One thing I didn't see mentioned in this issue is the HTTP response you get back when it fails to log you in...
I don't know why it would be responding to this. I tried typing in username and password manually (without autofill from a PW manager) and it still endlessly fails and refuses to log you in. Very frustrating issue. |
Hi all, |
Same issue here. It started several month ago on my main computer in the same LAN. Enregistreur: homeassistant.components.http.ban Everything was working fine until it wasn't. Upgrade -> $http_upgrade My configuration yaml has the correct configuration : homeassistant: http:
ip_ban_enabled: false # to be sure during testing Tried everything I read without luck so far. |
The problem
Since the upgrade from 2023.2.3 to 2023.3.4, I have recurrent errors saying
Login attempt or request with invalid authentication
when using the API.The errors, so far, happened with the custom card mini graph card and with the automations themselves, as soon as I go to config/automation/dashboard.
Each time, an error appears saying
The IP is from my main computer visiting the web interface.
I managed to solve temporarily the issue by cleaning up completely the Local storage of my Firefox. But the issue reappears soon afterwards.
The error is fatal, with the custom card mini graph card, I don't have any graph showing, and with the automation, en error message says
This automation can not be edited from the UI, because it is not stored in the automations.yaml file, or doesn't have an ID.
If I try to migrate, as suggested, I have en error
Response error: 401
and the same log about the login attempt.The issue does not happen with Chromium (so far...) and didn't happened with the version 2023.2.3.
What version of Home Assistant Core has the issue?
2023.3.4
What was the last working version of Home Assistant Core?
2023.2.3
What type of installation are you running?
Home Assistant Core
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: