frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Uncaught (in promise) errors repeatedly triggered in translations-mixin.ts after reconnect

Open cloudbr34k84 opened this issue 4 months ago • 0 comments

Checklist

  • [x] I have updated to the latest available Home Assistant version.
  • [x] I have cleared the cache of my browser.
  • [x] I have tried a different browser to see if it is related to my browser.
  • [x] I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

After a reconnect event (e.g., HA server restart or frontend refresh), the Home Assistant frontend repeatedly throws errors in the browser console related to failed translation loading. The following log is spammed in the browser console (Chrome):

Uncaught (in promise) {type: 'result', success: false, error: {…}}
translations-mixin.ts:370
at _loadHassTranslations
at _refetchCachedHassTranslations
at hassReconnected

This appears to originate from translations-mixin.ts and connection-mixin.ts, and seems to occur consistently after hassReconnected. It also affects system-log-card.ts.

Describe the behavior you expected

Translations should be reloaded silently or retried with graceful failure handling. These errors should not flood the console or be unhandled.

Steps to reproduce the issue

  1. Restart Home Assistant or reload the frontend UI (e.g., via F5).
  2. Wait for HA frontend to reconnect (hassReconnected is triggered).
  3. Observe multiple console errors (stack traces attached below).

What version of Home Assistant Core has the issue?

2025.6.0b5

What was the last working version of Home Assistant Core?

Unsure

In which browser are you experiencing the issue?

No response

Which operating system are you using to run this browser?

Chrome Version 137.0.7151.69 (Official Build) (64-bit)

State of relevant entities


Problem-relevant frontend configuration


JavaScript errors shown in your browser console/inspector

translations-mixin.ts:370 Uncaught (in promise) {type: 'result', success: false, error: {…}}
  at _loadHassTranslations
  at _refetchCachedHassTranslations
  at hassReconnected
  at connection-mixin.ts:225

Additional information

No response

cloudbr34k84 avatar Jun 10 '25 23:06 cloudbr34k84