Cursor api gives timeout error when connecting to remote ssh

Steps to reproduce:

wget https://api2.cursor.sh/updates/download/xxx/vscode-reh-linux-x64.tar.gz

Error:

--2024-09-26 15:52:49--  (try:10)  https://api2.cursor.sh/updates/download/xxx/vscode-reh-linux-x64.tar.gz
Reusing existing connection to api2.cursor.sh:443.
HTTP request sent, awaiting response... 504 Gateway Time-out
Retrying.

Can you please help me resolve this issue?