Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it stopped to building () error: API request failed caused by: [6] Couldn't resolve host name #1187

Closed
6 of 11 tasks
FelipeSSantos1 opened this issue Nov 11, 2020 · 4 comments
Closed
6 of 11 tasks

Comments

@FelipeSSantos1
Copy link

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 2.0.0, also happened at 1.3.9

react-native version: 0.63.3

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

[Link to issue]

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // other options
});

or

(react-native-sentry)

Sentry.config(
  'https://...@sentry.io/1837884'
  // other options
 ).install();

I have following issue:

Well... we just build it 4 hours ago and it was working fine, so right now we tried to build again and we are getting this issue, no commit on project after last build.
We were using 1.3.9 sentry version, so we tried to upgrade it to 2.0.0 to try to fix it, but no luck with that.

Steps to reproduce:

  • Just try to build to Android or iOS

Actual result:

Processing react-native sourcemaps for Sentry upload.
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
error: API request failed
  caused by: [6] Couldn't resolve host name

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

> Task :app:bundleReleaseJsAndAssets_SentryUpload_6569
Processing react-native sourcemaps for Sentry upload.
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
error: API request failed
  caused by: [6] Couldn't resolve host name

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

Expected result:

build it successfully

@FelipeSSantos1
Copy link
Author

Nevermind... probably it was in our side, it's working in another computer, please, close it

@bencagri
Copy link

bencagri commented Mar 5, 2022

I also have the same problem.

The debug

> Adding source map references
  DEBUG   2022-03-05 13:59:18.604882 +02:00 request POST https://sentry.io/api/0/projects/***/***/releases/
  DEBUG   2022-03-05 13:59:18.604944 +02:00 using token authentication
  DEBUG   2022-03-05 13:59:18.604965 +02:00 json body: {"version":"com.***@1.1.0+58","projects":["***"]}
  DEBUG   2022-03-05 13:59:18.604981 +02:00 retry number 0, max retries: 0
error: API request failed
  caused by: [6] Couldn't resolve host name (Could not resolve host: sentry.io)
  DEBUG   2022-03-05 13:59:18.608892 +02:00 skipping update nagger because session is not attended

FAILURE: Build failed with an exception.

when I run sentry-cli info I see a valid response. It was working but suddenly started giving this error.

@sentry/react-native to 3.3.0
react-native: 0.65.1

@thoth-seshat
Copy link

I'm getting the same issue now

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Aug 5, 2023
@krystofwoldrich
Copy link
Member

@thoth-seshat Can you use export SENTRY_LOG_LEVEL=debug to get more detailed error logs?

@krystofwoldrich krystofwoldrich moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants