Spotify Component Authorization Error 500

Tried including the Spotify component - it popped up with a notification to configure - i click on it, sign in, allow and then it redirects to a 500 Internal Server Error

Configure link - https://accounts.spotify.com/authorize?client_id=7c85e5584f0d420b8dfc1f6233d61a54&response_type=code&redirect_uri=https%3A%2F%2FMYDOMAIN.duckdns.org%3A8123%2Fapi%2Fspotify&scope=user-modify-playback-state+user-read-playback-state+user-read-private

Redirected link - https://MYDOMAIN.duckdns.org:8123/api/spotify?code=AQCn0xkwkql2A6SPMW6X0FfocgShjW_wHjBVTIlkzEC03OKoRXG-DfRTynNgRQ60ZlrGmctCAIpn5JTS-NSYtvWxFxUVTzA8TmpsgC-plTR_MIpSC2f3pdXnqW2nAA0uzM8UYS7_mkpEr05VvSmDQdNZCLWX3Dd98VdTDYX2bk1sVOHJZtYItrG13Z24FTiVGpNH1qe1TEMtBefD65Ma3fZ8HhEbH7bseZ84eeUuX_F5lfF94O7mD0fA9yG7eSTBsYmoMZyR0CGQ4UnvtNvTsiO-mFyOAtoS5N_o3YrN3Km2MViVG82j7bPfkRQ

Redirect URI setup - https://MYDOMAIN.duckdns.org:8123/api/spotify

Config - - platform: spotify client_id: !secret spotify_client_id client_secret: spotify_client_secret name: Will's Spotify

Any idea whats going wrong?
Thanks