Skip to content

API request failed caused by: [6] Couldn't resolve host name (Could not resolve host: sentry.io) #2177

@MessyComposer

Description

@MessyComposer

CLI Version

2.36.1

Operating System and Architecture

  • macOS (arm64)
  • macOS (x86_64)
  • Linux (i686)
  • Linux (x86_64)
  • Linux (armv7)
  • Linux (aarch64)
  • Windows (i686)
  • Windows (x86_64)

Operating System Version

node:18

Link to reproduction repository

No response

CLI Command

sentry-cli sourcemaps upload ./build --log-level=debug

Exact Reproduction Steps

We're running docker in docker (CI/CD runners), and the sourcemap upload fails when using sentry cli 2.36.1

#18 271.0   DEBUG   2024-10-08 04:59:31.639983941 +00:00 sentry-cli version: 2.36.1, platform: "linux", architecture: "x86_64"
#18 271.0   INFO    2024-10-08 04:59:31.642626745 +00:00 sentry-cli was invoked with the following command line: "/node_modules/@sentry/cli-linux-x64/bin/sentry-cli" "sourcemaps" "upload" "./build" "--log-level=debug"
#18 271.0   DEBUG   2024-10-08 04:59:31.665596764 +00:00 request GET https://sentry.io/api/0/organizations/my-org/chunk-upload/
#18 271.0   DEBUG   2024-10-08 04:59:31.666097469 +00:00 using token authentication
#18 271.0   DEBUG   2024-10-08 04:59:31.666149118 +00:00 retry number 0, max retries: 0
#18 271.0 error: API request failed
#18 271.0   caused by: [6] Couldn't resolve host name (Could not resolve host: sentry.io)

There is nothing of real value in the logs that I can tell, it just instantly fails with Could not resolve host: sentry.io

Downgrading to 2.21.2 and it works fine.

#17 255.6   DEBUG   2024-10-08 05:26:01.509355690 +00:00 sentry-cli version: 2.21.2, platform: "linux", architecture: "x86_64"
#17 255.6   INFO    2024-10-08 05:26:01.509490578 +00:00 sentry-cli was invoked with the following command line: "/node_modules/@sentry/cli/sentry-cli" "sourcemaps" "upload" "./build" "--log-level=debug"
#17 255.9   DEBUG   2024-10-08 05:26:01.733801645 +00:00 request GET https://sentry.io/api/0/organizations/my-org/chunk-upload/
#17 255.9   DEBUG   2024-10-08 05:26:01.733921544 +00:00 using token authentication
#17 255.9   DEBUG   2024-10-08 05:26:01.775845651 +00:00 retry number 0, max retries: 0
#17 256.1   DEBUG   2024-10-08 05:26:01.957978594 +00:00 > GET /api/0/organizations/my-org/chunk-upload/ HTTP/1.1
#17 256.1   DEBUG   2024-10-08 05:26:01.958671628 +00:00 > Host: sentry.io
#17 256.1   DEBUG   2024-10-08 05:26:01.958781797 +00:00 > Accept: */*
...
#17 261.9 > Uploaded files to Sentry
#17 262.2 > File upload complete (processing pending on server)

Expected Results

The sourcemaps files are uploaded to sentry successfully

Actual Results

API request failed caused by: [6] Couldn't resolve host name (Could not resolve host: sentry.io)

Logs

#18 271.0   DEBUG   2024-10-08 04:59:31.639983941 +00:00 sentry-cli version: 2.36.1, platform: "linux", architecture: "x86_64"
#18 271.0   INFO    2024-10-08 04:59:31.642626745 +00:00 sentry-cli was invoked with the following command line: "/node_modules/@sentry/cli-linux-x64/bin/sentry-cli" "sourcemaps" "upload" "./build" "--log-level=debug"
#18 271.0   DEBUG   2024-10-08 04:59:31.665596764 +00:00 request GET https://sentry.io/api/0/organizations/my-org/chunk-upload/
#18 271.0   DEBUG   2024-10-08 04:59:31.666097469 +00:00 using token authentication
#18 271.0   DEBUG   2024-10-08 04:59:31.666149118 +00:00 retry number 0, max retries: 0
#18 271.0 error: API request failed
#18 271.0   caused by: [6] Couldn't resolve host name (Could not resolve host: sentry.io)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssue type

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions