question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API request failed, Couldn't resolve host name

See original GitHub issue

I’m trying to use this plugin so that I can use source-maps without exposing them. But I get this error when I try to create a new release.

The logs are:

INFO    2020-06-09 16:48:17.202613 +05:30 Loaded       
config from /Users/300070023/.sentryclirc                
INFO    2020-06-09 16:48:17.204011 +05:30 sentry-cli   
was invoked with the following command line: "/Users/3000
70023/myntra/spectrum-dexter/node_modules/@sentry/cli/sen
try-cli" "releases" "new" "2bf08cf22d8113d0be7eaf3b0b5ab6
7fb2963fc0"                                              
error: API request failed                                
  caused by: [6] Couldn't resolve host name

This is my webpack config:

new SentryWebpackPlugin({
      include: '.',
      ignoreFile: '.sentrycliignore',
      ignore: ['node_modules', 'webpack.config.js'],
      configFile: 'sentry.properties',
      debug: true
    })

My .sentryslirc looks like:

[auth]
token=XXXX

[defaults]
url = https://sentry.xxx.com/
project=xyz
org=abc

[log]
level=info

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilogorekcommented, Jul 8, 2020

@orenmagen100 when you call sentry-cli with SENTRY_LOG_LEVEL=debug or --log-level=debug you should see an entry similar to:

  INFO    2020-07-08 10:48:50.931440 +02:00 Loaded config from /Users/kamilogorek/.sentryclirc
1reaction
kamilogorekcommented, Jun 9, 2020

The error says it all: Couldn't resolve host name. This means that your local machine/server is unable to communicate with whatever value you put in your defaults.url config.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the meaning of error: 'Unable to resolve host name' or ...
This error indicates that your hostname failed to translate into an IP address. Usually, this error occurs when you change the hostname of...
Read more >
Why am I getting this error in Nodejs? Error: Couldn't resolve ...
While testing registration API by Insomnia I am getting this error in insomnia preview: Couldn't resolve host name. I am using mongodb ...
Read more >
API Couldn't resolve host name - Designer - Alteryx Community
Hello everyone, I currently have a workflow that picks up a weather API and outputs current stats for 15 locations.
Read more >
Curl Error: Couldn't resolve host name/couldn't connect to server
I've been trying to run the Tableau SDK example of pushing data extracts to the Tableau server. However, after entering credentials, I'm running...
Read more >
Articles How do I resolve the error "Could not resolve host
How do I resolve the error "Could not resolve host: api-xxxxxxxx.duosecurity.com" or "Resolving timed out after 5000 milliseconds" in the Docker DAG logs?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found