Installing WordPress with localhost
as absoluteURL fails with getaddrinfo ENOTFOUND localhost
#203
Labels
[Aspect] Networking
[Aspect] Node.js
Needs Triage
[Type] Bug
An existing feature does not function as intended
Description
This code:
Results in the following error:
Workaround
Use
127.0.0.1
instead of localhostWhy does it happen?
I'm not sure! My guess is it tries to resolve
localhost
using DNS resolution and is unaware of/etc/hosts
. I think there's an emscripten function that handlesgetaddrinfo
– there should be a way to hook into that and provide a custom resolution mechanism.The text was updated successfully, but these errors were encountered: