I'm getting the error when installing Spotify on Arch using Yay a.k.a Yet another Yogurt, it's an AUR Helper.
The problem
:: PGP keys need importing:
-> F9A21197XXXXX, required by: spotify
==> Import? [Y/n] y
:: Importing keys with gpg...
gpg: keyserver receive failed: Server indicated a failure
-> problem importing keys
Step to fix
The resolution to fix the gpg key server error when importing keys, then I simply run:
$ gpg --keyserver hkp://pgp.rediris.es --recv-keys F9A21197XXXXX
or
$ gpg --keyserver hkp://keys.gnupg.net --recv F9A21197XXXXX