documentation/clients/cli/troubleshooting.mdx
Below is a set of error codes and the corresponding messages that will be displayed in the CLI under various scenarios associated with workspace access. Understanding the reasons behind these errors will help you troubleshoot them on your end.
TOKEN_EXPIREDThe specified access token is expired. Please provide a valid token.
Reason: The supplied access token via the --token flag has been expired.
hopp test [-e <environment-id>] <collection-id> [--token <access_token>] [--server <server_url>]
TOKEN_INVALIDThe specified access token is invalid. Please provide a valid token.
Reason: The specified access token via the --token flag is invalid or might have been deleted.
hopp test [-e <environment-id>] <collection-id> [--token <access_token>] [--server <server_url>]
INVALID_IDThe specified collection/environment (ID or file path) is invalid or inaccessible. Please ensure the supplied ID or file path is correct.
Reason: Either an invalid ID is supplied or the resource is inaccessible to the user because the user isn't part of the team to which the resource belongs.
hopp test [-e <invalid-env-id>] <invalid-collection-id> [--token <access_token>] [--server <server_url>]
Reason: Supplied file path of the collection or environment doesn't exist.
hopp test [-e <non-existent-env-file-path>] <non-existent-collection-file-path>
INVALID_SERVER_URLPlease provide a valid SH instance server URL.
Reason: There are multiple cases in which this error can occur:
/v1/access-tokens/{collection/environment}/{path/id}, resulting in a 404 network call error.application/json, safeguarding against cases where the network call doesn't fail, such as when the route is invalid as above, and checking against the content type (e.g., supplying the FE instance URL).ERR_INVALID_URL as the error code from the network call). For instance, missing a protocol (e.g., http:// or https://), having an invalid structure, or containing illegal characters.ENOTFOUND as the error code from the network call). For instance, a typo in the domain name.hopp test [-e <environment-id>] <collection-id> [--token <access_token>] [--server <invalid-server-url>]
SERVER_CONNECTION_REFUSEDUnable to connect to the server. Please check your network connection or server instance URL and try again.
Reason: Found the server, but the server refused to connect (received ECONNREFUSED as the error code from the network call).
hopp test [-e <environment-id>] <collection-id> [--token <access_token>] [--server <invalid-server-url>]