home-assistant / home-assistant/iOS

Login attempt or request with invalid authentication

Open
#3,138 35 comments 4 reactions 1 assignee Claimed by @bgoncal View on GitHub
bug ios
Dominant language
Swift
Stars
2.4k
Forks
520
Avg merge
7h 27m
Merged PRs (30d)
264

Description

**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:
>Login attempt or request with invalid authentication from localhost (127.0.0.1). See the log for details.

When checking the logs, this comes from one of my iOS devices:
>Logger: homeassistant.components.http.ban
Source: components/http/ban.py:136
integration: HTTP (documentation, issues)
First occurred: November 8, 2024 at 23:20:21 (2 occurrences)
Last logged: November 8, 2024 at 23:20:22
>
>Login attempt or request with invalid authentication from localhost (127.0.0.1). Requested URL: '/api/websocket'. (Home Assistant/2024.10 (io.robbie.HomeAssistant; build:2024.934; iOS 18.1.0))

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:
https://github.com/home-assistant/iOS/issues/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.