Spotify configuration error (INVALID_CLIENT: Failed to get client)

Thank you so much my friend.

1 Like

Thanks, this worked for me :slight_smile:

1 Like

@Mijn.Handen, you’re a legend! many thanks my friend!!! I was going around in circles and you’re solution fixed the issue immediately.

1 Like

YESSS indeed. Works for me as well!

1 Like

This helped me very well, Thank you!

1 Like

This helped me to. Thanks man :slight_smile:

1 Like

you are the man!, wonderful, Thank you so much bro

1 Like

Hi guys

I was struggling with some Spotify integration problems (500, invalid client etc). In my case the fault was that my dockerized Home Assistant could not connect to DNS server.
Firstly check is DNS is a problem:

  1. Login to HA container - on my setup it was: sudo docker exec -it homeassistant /bin/bash
  2. Ping any domain ping google.com - if command is not responding with ping, you know that it is DNS problem.

Solution:
In my docker-compose file add DNS configuration

homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/raspberrypi3-homeassistant:stable"
    volumes:
      ...
    restart: unless-stopped
    dns:
        - 8.8.8.8
    privileged: true
    network_mode: host

I have picked google DNS 8.8.8.8, you can pick anything you like.

Then restart docker-compose, in my case it was:
sudo docker compose -f ./home-assistant.yml stop
sudo docker compose -f ./home-assistant.yml up -d

Proceed with official documentation. Then it worked form me, with local IP.

1 Like

Works fine, tks

2 Likes

I hope this is useful for people. I had my HA on docker on Debian (supervised) back then. Never had a issue with DNS like you had.
anyways… thanks for sharing this information.

Thank you very much

1 Like

tks a lot.this worked for me!

1 Like

Thanks a lot man, works for me!

1 Like