The macOS desktop client supports scripting via AppleScript. A recent update has broken it when Spotify is playing via Spotify Connect.
This is an issue for people using scripting to help with accessibility, and for people how rely on scripting for automation.
Here's a simple command to check if it is working properly:
osascript -e 'tell application "Spotify" to get name of current track'
The command should output the playing track's name, but it doesn't print anything.