Remote error: Unknown error occurred on the server. Response code: 501.
If you areNOTusing theemail addressandAPI tokenfor your user credentials for accessing Cloud sites (seeAuthentication), you will likely receive: Remote error:User is not authorized to perform the request. Response code: 401.
Even when using an API token, we have cases of401errors caused byolder API tokens.Revoke the existing token and generate a new token. Then execute the CLI command.
CLI users must upgrade their CLI client to the latest version available to rollout GDPR platform changes. The Username and Password parameters accept only user email address and token respectively.
To generate the token:
Click your profile avatar on the bottom left corner.
Navigate to Profile > Manage your account > Security.
Under API token, click Create and manage API tokens (If you see a blank screen, refresh the page Or open this in another browser).
Click Create an API token. A token is created that needs to be copied and kept securely.
Perform the following to avoid the error:
Download the latest version of CLI distribution (Client) from this location.