The API which is the server that stores all the data is currently down hence your server can't get the player rank from it.
Here's the official post from the global team in the Discord server (11/04/2022):
The API is currently unstable due to an unexpected error. Please be patient while we resolve the issue, no ETA currently.
Thank you, Global Team