Unable to connect with spotify integration

My spotify integration stopped working a week ago, and I have been reading and trying every tip and instruction on the net.

I have made several apps on developer.spotify, with all the redirect uri I can think of, both, local IP, Duckdns (running with Let’s encrypt) and even the nabucase url.
Trying to connect throght the spotify app, it throws all kinds of erreors: not found, 404-errors and sometime the redirect window closes and the integration just states ‘ERROR’.
Both the two apps in spotify is registrerd with client_id and client_secret under Application cridentials

Using the Nabucasa option seems to work (at first). I get a sucessfull integration message. But returning to the Settings/integration, the Spotifiy integration shows an error: Retrying setup: http status: 429, code:-1 - /v1/me/: Max Retries, reason: too many 429 error responses Then it actually comes to life now and then. I get the Spotify card in Lovecale with playlist, but it usually lasts for some minutes and then is gone. Som minutes later, it sometimes reapear.

In the log I now get this error:

Logger: aiohttp.server
Source: helpers/config_entry_oauth2_flow.py:205
First occurred: 16:21:47 (5 occurrences)
Last logged: 16:35:06

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 220, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 196, in get
    return await super().get(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 95, in get
    result = await self._flow_mgr.async_configure(flow_id)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in async_configure
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 300, in async_step_creation
    token = await self.flow_impl.async_resolve_external_data(self.external_data)
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 169, in async_resolve_external_data
    return await self._token_request(
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 205, in _token_request
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://accounts.spotify.com/api/token')

Please HELP!!

Multiple posts on this topic - but I haven’t seen any solutions to this issue.

Commenting on this as well for a fix.

My Spotify Developer page is using (Link to OAuth2 Authorize Callback – My Home Assistant) redirect URI; and when adding the integration - it fails no matter what methods that I attempt to use to get it working.

I’m having the same issue - anyone figured out how to fix it?

I have the same issue, the final step in the integration Linking assistent to Spotify does not seem to work.

With this message on the scree it stops.

Link account to Home Assistant?

Linking your account will grant your Home Assistant instance access to your account. All credentials are stored locally.

Anybody a solution?