Help Center> Koo Command Line Interface> FAQs> Network Connections> What Can I Do If the Network Connection Times Out?
Updated on 2022-07-07 GMT+08:00

What Can I Do If the Network Connection Times Out?

Background

During a cloud service API call, KooCLI verifies the validity of your input parameters. Specifically, it first remotely obtains the details about the cloud service and API, and then remotely calls the target API. If the request fails due to a network connection error, an error message is displayed. For example:

  • [NETWORK_ERROR] Connection timed out. Check network connectivity.
  • [USE_ERROR] API calling timed out. Check the value of readTimeout in the profile or command.
  • [NETWORK_ERROR] Connection timed out * consecutive times (reconnection attempts: *). Check network connectivity.

Solution

  1. Check whether your network connection is normal.
  2. If the network connection is normal but the error message indicates that the connection timed out, the value of cli-connect-timeout in the profile or command may be too small. Change the value as follows:
    • If the --cli-connect-timeout option is used in the command, increase the value and try again.
    • If the --cli-connect-timeout option is not used in the command, the value of this parameter in the current profile is used during command execution. Add --cli-connect-timeout=${connectTimeout} to the current command to temporarily overwrite the parameter value in the profile, and try again. To change the parameter value in the profile, run the hcloud configure set --cli-profile=${profileName} --cli-connect-timeout=${connectTimeout} command.
  3. If the network connection is normal but the error message prompts you to check readTimeout, the value of cli-read-timeout in the profile or command may be too small. Change the value as follows:
    • If the --cli-read-timeout option is used in the command, increase the value and try again.
    • If the --cli-read-timeout option is not used in the command, the value of this parameter in the current profile is used during command execution. Add --cli-read-timeout=${readTimeout} to the current command to temporarily overwrite the parameter value in the profile, and try again. To change the parameter value in the profile, run the hcloud configure set --cli-profile=${profileName} --cli-read-timeout=${readTimeout} command.

Network Connections FAQs

more