GoogleChromeLabs / carlo

Web rendering surface for Node applications
Apache License 2.0
9.32k stars 309 forks source link

net::ERR_NAME_NOT_RESOLVED domain's server IP address could not be found. #133

Open johnjbarton opened 5 years ago

johnjbarton commented 5 years ago

When trying to run ndb, a carlo app, in a linux environment with some restrictions I fail with net::ERR_NAME_NOT_RESOLVED and the carlo window shows the chrome sad page icon with domain's server IP address could not be found.

The issue is related to the URL set here: https://github.com/GoogleChromeLabs/carlo/blob/4e8ed7bdfe656f4c2672ab777ab81df777b2b185/lib/carlo.js#L349

Obviously 'domain' is not a real DNS name. How is this supposed to work?

pavelfeldman commented 5 years ago

Carlo is intercepting all the network requests and as Chrome goes for https://domain/*, carlo feeds it with the resources from the file system / dynamic handler / some other proxied web location. In some cases, the error you see would be there due to zombie chrome instances from the previous ndb launches.

shosatojp commented 5 years ago

I had same issue when I "pkg" a nodejs app using carlo. Though I don't know why, but I changed app.serveFolder(__dirname); to app.serveFolder('.');, then this error disappeared.