core: Bring! Failed to connect when adding integration

The problem

When setting up the integration I get ‘Failed to connect’ image

I have tried setting all 3 lists I have to Germany in the app, also tried USA and reverted back to setting them all to UK (which is the one I use normally), none of them worked.

What version of Home Assistant Core has the issue?

core-2024.3.0

What was the last working version of Home Assistant Core?

core-2024.2.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Bring!

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bring

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Locale file articles.en-DE.json could not be loaded from filesystem. Will continue trying to download locale.
Exception: Cannot load articles.en-DE.json: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/bring_api/bring.py", line 821, in __load_article_translations dictionaries[locale] = await r.json() ^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 71, in json return await super().json(*args, loads=loads, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1166, in json raise ContentTypeError( aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://web.getbring.com/locale/articles.en-DE.json')

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Reactions: 1
  • Comments: 20 (5 by maintainers)

Most upvoted comments

en-ES, also known as the Spanglish locale. Bring really should have that as supported language 🤣 (And sorry again for introducing this bug)

Hi

I thing I have same issue with en-ES:

Logger: bring_api.bring
Source: components/bring/__init__.py:37
First occurred: March 7, 2024 at 9:57:05 AM (2492 occurrences)
Last logged: 1:58:53 PM

Locale file articles.en-ES.json could not be loaded from filesystem. Will continue trying to download locale.
Exception: Cannot load articles.en-ES.json: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/bring_api/bring.py", line 821, in __load_article_translations dictionaries[locale] = await r.json() ^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 71, in json return await super().json(*args, loads=loads, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1166, in json raise ContentTypeError( aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://web.getbring.com/locale/articles.en-ES.json')

I see this issue is now closed, but, I did not see the solution, what I missed?

thansk

if it´s not urgent wait the patch… but if you want using the CLI (you need to have a CLI access in not protection mode):

docker exec -it homeassistant /bin/bash cd /usr/local/lib/python3.12/site-packages/bring_api/locales cp articles.en-EN.json articles.en-ES.json exit

Note: this is something not permanent, when you reinstall the core you miss it… but works

image

With English + Norway county image

en-DE? That’s a very weird locale. But i think i know what happened here. Unfortunately this is not a language setting that can be changed in the app. Will try to fix it asap.

Same for me. I have set my Phone to English but the Region & Language setting in the Bring! app is set to “Germany”. Maybe that helps to understand.