Kong / Kong/insomnia

[FIXED] MacOS - Could not resolve host: example.localhost using jwilder/nginx-proxy

Open
#4,445 5 comments 0 reactions 0 assignees View on GitHub
A-networking B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

Currently I have the problem, that Insomnia can't connect to localhost domains provided by the docker container nginx-proxy.

```
* Preparing request to https://examle.localhost/api/variants/1575?useNumberAsId=true
* Current time is 2022-02-04T07:14:46.541Z
* Using libcurl/7.73.0 OpenSSL/1.1.1k zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 libidn2/2.1.1 libssh2/1.9.0 nghttp2/1.42.0
* Using default HTTP version
* Disable timeout
* Enable automatic URL encoding
* Disable SSL validation
* Enable cookie sending with jar of 6 cookies
* Could not resolve host: example.localhost
* Closing connection 2
```

Calling this URL by browser (Chrom, Firefox or Safari) works properly.

OS: MacOS Monterey 12.2
insomnia:
```
Version: Insomnia 2021.7.2
Release date: 12/9/2021
OS: Darwin x64 21.3.0
Electron: 11.2.3
Node: 12.18.3
V8: 8.7.220.31-electron.0
Architecture: x64
node-libcurl: libcurl/7.73.0 OpenSSL/1.1.1k zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 libidn2/2.1.1 libssh2/1.9.0 nghttp2/1.42.0
```

Using https://github.com/nginx-proxy/nginx-proxy for localhost development.

Contributor guide

Open the contributing guide

Research direction

The issue names no source files, tests, or entry points. Start by reproducing the request in Insomnia on macOS Monterey with a dockerized nginx-proxy hostname, then compare it with the same URL in a browser. Done means Insomnia resolves the local hostname and connects successfully; the issue is marked fixed but provides no fix details.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, electron, macos, nginx
Domain
desktop, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.