The problem was caused by a change in the security policies of our ISP: they blacklisted the IP address of accounts.spotify.com because many of their servers were targeted with multiple connections to unusual TCP ports coming from that IP.
Not a code problem.