Skip to content

Amazon Q CLI "Amazon Q is having trouble responding right now" with Dispatch Failure - intermittent issue

0

Note: This is a re-post of our question already posted on StackOverflow: Amazon Q CLI Amazon Q is having trouble responding right now with Dispatch Failure - intermittent issue


Problem Description

I'm experiencing frequent intermittent dispatch failure errors with Amazon Q CLI that significantly impact my ability to work. The error occurs randomly during usage, suggesting it's not a configuration issue but rather a service-side problem.

Error Details

The error manifests as:

WARNING: Retry #2, retrying within 10.0s..
Amazon Q is having trouble responding right now:
   0: Failed to send the request: An unknown error occurred: dispatch failure
   1: An unknown error occurred: dispatch failure
   2: dispatch failure (io error): an i/o error occurred: error sending request for url (https://xxx.amazonaws.com/)
   3: dispatch failure
   4: io error
   5: an i/o error occurred: error sending request for url (https://xxx.amazonaws.com/)

Location:
   crates/chat-cli/src/cli/chat/mod.rs:1146

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Key Characteristics

  • Intermittent behavior: Works sometimes, fails other times
  • No configuration changes: Occurs without any changes to my setup
  • Impacts productivity: Frequent failures during work sessions
  • Error pattern: Always includes dispatch failure (io error) and AWS endpoint URL errors

Environment Details

  • Platform: macOS 15.7.1
  • Q CLI Version: 1.19.6
  • Network: Mobile hotspot (iPhone), all other internet services working normally
  • Authentication: Using professional license

Troubleshooting Attempts

I've systematically tried multiple solutions without success:

1. Complete Q CLI Reinstallation

Completely uninstalled and reinstalled Q CLI using package manager.

2. Tried Alternative CLI Tools

Tried installing Kiro CLI (the replacement for Q CLI) - same dispatch failures occur with the alternative tool.

3. Authentication Reset

# Logged out and back in
q logout
q login

Analysis and Investigation

The intermittent nature strongly suggests this is a service-side issue (capacity/throttling/infrastructure) rather than local configuration, since:

  1. Configuration problems are typically consistent
  2. All other internet services work normally on same network
  3. No local configuration changes correlate with failures

Questions

  1. Is this a known capacity/throttling issue with the Amazon Q CLI service during peak usage times?

  2. Are there any workarounds for users experiencing frequent dispatch failures?

  3. Has anyone else experienced similar intermittent issues with Amazon Q CLI?

  4. What's the best way to report this as a potential service infrastructure issue?

Additional Context

This issue has been repeatedly impacting my productivity. The fact that both Q CLI and its replacement (Kiro CLI) exhibit the same behavior suggests the underlying AWS service infrastructure may be the root cause rather than the client application itself.

The error consistently points to network/IO issues when communicating with Amazon Q servers, but all other AWS services and internet connectivity work fine.

Any insights into whether this is a known service-side issue or additional troubleshooting steps would be greatly appreciated.

asked a year ago800 views

2 Answers
0

This error appears to be related to connectivity issues between your Amazon Q CLI client and the AWS service endpoints. The "dispatch failure" and "io error" messages indicate problems establishing or maintaining the network connection required for Amazon Q to function properly.

Based on the intermittent nature of the issue, here are some potential causes and troubleshooting steps:

  1. Network connectivity issues: Amazon Q uses WebSocket technology over specific ports to maintain secure communication with its endpoints. When using a mobile hotspot, you might experience intermittent connectivity issues that affect these connections.

  2. General troubleshooting steps:

  • Verify your internet connection is stable
  • Ensure you're properly authenticated with valid credentials
  • Try running q doctor in your terminal to diagnose common issues with your Amazon Q installation
  • Break down your prompts into smaller, less complex inputs
  1. Service capacity issues: The AWS team is aware of some users experiencing errors due to high demand following recent launches. This could be temporarily affecting Amazon Q CLI and other Q-powered tools as they share the same backend infrastructure.

  2. Reporting the issue: If the problem persists after trying the above steps, you can report the issue using the q issue command in your terminal. This will help the AWS team track and address the problem.

Since you're experiencing this issue with both Q CLI and Kiro CLI, and it happens intermittently without any configuration changes, it does suggest a potential service-side issue rather than a local configuration problem. The AWS team may be working on stabilizing the service and provisioning additional capacity to address these types of issues.
Sources
Amazon Q is having trouble responding right now: | AWS re:Post
Troubleshoot server stopped responding error in Amazon Q Business | AWS re:Post
Troubleshoot Amazon Q Developer - Amazon Q Developer

answered a year ago

0

I experienced the same issue and was able to resolve it. In particular I experienced it using WSL2 Ubuntu. The root cause was the use of Zscaler on my company's workstations. Zscaler uses man-in-the-middle certificates for their "private access" capability. You can verify if your issue has the same root cause by curling the amazon q endpoint:

$ curl -vk https://q.us-east-1.amazonaws.com/
* Host q.us-east-1.amazonaws.com:443 was resolved.
* IPv6: (none)
* IPv4: 52.204.207.171, 3.209.234.169, 54.144.191.233
*   Trying 52.204.207.171:443...
* Connected to q.us-east-1.amazonaws.com (52.204.207.171) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / prime256v1 / RSASSA-PSS
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
*  subject: CN=q.us-east-1.amazonaws.com; O=Zscaler Inc.; OU=Zscaler Inc.
*  start date: Nov 25 12:43:46 2025 GMT
*  expire date: Dec  6 05:13:00 2025 GMT
*  issuer: C=US; ST=California; O=Zscaler Inc.; OU=Zscaler Inc.; CN=Zscaler Intermediate Root CA (zscaler.net) (t)
*  SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 2: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption

Note the SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.

What I ended up doing was copying the Zscaler root certificates from Windows to WSL2 Ubuntu.

Export the Zscaler Root Certificate from Windows:

  • Open the Windows Certificate Manager (certlm.msc).
  • Navigate to "Trusted Root Certification Authorities" > "Certificates".
  • Locate the Zscaler Root CA certificate (its name may vary slightly, but it will typically contain "Zscaler").
  • Right-click the certificate, select "All Tasks" > "Export...".
  • Follow the Certificate Export Wizard, choosing "DER encoded binary X.509 (.CER)" or "Base-64 encoded X.509 (.CER)" format. Save the certificate to a location accessible from WSL2 (e.g., your Windows Downloads folder).

Copy and Convert the Certificate in WSL2:

  • Open your WSL2 terminal.
  • Navigate to the directory where you saved the certificate (e.g., /mnt/c/Users/<YourUsername>/Downloads/).
  • If you exported in DER format, convert it to PEM format using openssl:
     openssl x509 -inform DER -in zscaler_root_ca.cer -out zscaler_root_ca.crt
    
  • Copy the converted .crt file to the /usr/local/share/ca-certificates/ directory:
    sudo cp zscaler_root_ca.crt /usr/local/share/ca-certificates/
    
  • Update the CA certificate database.
    sudo update-ca-certificates
    

After this, certificates passed validation, and Amazon Q worked as normal again.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.