aws / aws/amazon-q-developer-cli

Q CLI telemetry failing - telemetry.us-east-1.amazonaws.com domain does not exist

Open
#3,046 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again

### Operating system

macOS 15.7.0 (24G222)

### Expected behaviour

Q CLI telemetry should successfully upload to AWS without DNS resolution errors

### Actual behaviour

Q CLI telemetry uploads fail because telemetry.us-east-1.amazonaws.com returns NXDOMAIN (domain does not exist). DNS lookups from multiple resolvers confirm the domain is not configured.

```
[chat-transcript]
Telemetry is now re-enabled. You should start seeing the failed telemetry upload attempts again, which will provide diagnostic information for your bug report with AWS.

You can monitor for

> did anything in my configuration change between 0/22 and 9/23?

Let me check for configuration changes between those dates:
[Tool uses: execute_bash]

[Tool uses: execute_bash]

[Tool uses: execute_bash]

[Tool uses: execute_bash]

[Tool uses: execute_bash]

Yes! There was a significant change around that timeframe:

**Q CLI was updated from version 1.16.1 to 1.16.2 on September 24th, 2024**

Looking at the timestamps:
- Q CLI 1.16.1 was installed on September 22, 2024 (18:47)
- Q CLI 1.16.2 was installed on September 24, 2024 (16:24)

This version change happened right in the window when telemetry started failing (you mentioned 9/23). The telemetry endpoint issue likely stems from this version update - either:

1. Version 1.16.2 introduced a bug with the telemetry endpoint URL
2. The new version expects a different telemetry service that AWS hasn't deployed yet
3. There's a configuration mismatch in the new version

This timing correlation strongly suggests the telemetry failure is related to the Q CLI version update, not an AWS infrastructure issue. You should include this version change information in your bug report - it's a crucial piece of diagnostic data.
[Tool uses: none]

> great. can we point to the correct endpoint that 1.16.1 used?

Let me check what telemetry endpoint version 1.16.1 was using:
[Tool uses: execute_bash]

[Tool uses: execute_bash]

The strings output is nearly identical between versions, which suggests the telemetry endpoint isn't hardcoded as a simple string. Let me check if there are configuration files or if we can temporarily switch back to the working version:
[Tool uses: execute_bash]

[Tool uses: execute_bash]

[Tool uses: execute_bash]

[Tool uses: execute_bash]

Interesting - both versions report as 1.16.2, which suggests the directory naming might not reflect the actual version. Let me check if there's a way to configure the telemetry endpoint manually or if we can find where it's defined:
[Tool uses: execute_bash]

[Tool uses: execute_bash]

Unfortunately, I can't find a way to manually configure the telemetry endpoint. The endpoint appears to be hardcoded in the Q CLI binary, and both versions in your toolbox directory are actually reporting as 1.16.2.

The telemetry endpoint configuration isn't exposed as a user setting. Your best options are:

1. **Keep telemetry disabled** until AWS fixes the issue
2. **Include the version timing correlation in your bug report** - this is valuable diagnostic information
3. **Check if there's a way to downgrade** to an actual working version through the toolbox or installation method you used

The `telemetry.us-east-1.amazonaws.com` endpoint is likely hardcoded in the Q CLI source code and needs to be fixed by AWS in a future release.

### Steps to reproduce

1. Enable telemetry with `q settings telemetry.enabled true`
2. Use Q CLI normally
3. Telemetry uploads fail due to DNS resolution failure
4. Verify with `nslookup telemetry.us-east-1.amazonaws.com` - returns NXDOMAIN
5. Issue started around 9/23/2024, coinciding with Q CLI update from 1.16.1 to 1.16.2 on 9/24/2024

### Environment

```yaml

[q-details]
version = "1.16.2"
hash = "c4c80bb44cb22b6e19129ed7475f2793ff20135d"
date = "2025-09-19T01:27:56.356289Z (11d ago)"

[system-info]
os = "macOS 15.7.0 (24G222)"
chip = "Apple M2 Pro"
total-cores = 10
memory = "16.00 GB"

[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.local/bin:/Users/USER/.toolbox/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/USER/.local/bin:/Users/USER/Library/Application Support/JetBrains/Toolbox/scripts:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
QTERM_SESSION_ID = "0e37ed1532ea40048b8ed66072c9a8ae"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.16.2"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "org.tabby"

[chat-settings]

[chat-trusted_tools]
execute_bash=trusted

[chat-failed_request_ids]
none

[chat-context]
current_profile=default
profile_context=none

files=none
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.