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.

ToDo App (localhost:3000) shows no UI in Browser

See original GitHub issue

When I start the container with the node app, everything looks fine, but upon navigating to localhost:3000 the browser window is empty (see screenshot):

Capture

The logs contain exactly two lines:

Using sqlite database at /etc/todos/todo.db Listening on port 3000

This is on Docker Desktop CE Stable for WIndows 2.2.0.5, Docker Desktop CE Edge 2.2.3.0 under Windows 10 Pro 2004 and Windows 10 Enterprise 19.03. Tested with Chrome, Firefox, and Edge (all latest versions).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:22

github_iconTop GitHub Comments

5reactions
jmccormac01commented, May 27, 2021

I am following the tutorial now on Windows 10. I cloned the source from github. Added the Dockerfile as per the tutorial. Ran the container using docker run -dp 3000:3000 getting-started. I get the following in the docker logs:

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up

and then nothing on localhost:3000

image

Any ideas what might be wrong?

2reactions
Monte-Christocommented, Apr 19, 2020

Hi, thanks for the suggestion, @mikesir87. That worked as far as the Console errors are concerned. But there is still nothing being displayed but an error message:

This page isn’t working
localhost didn’t send any data.
ERR_EMPTY_RESPONSE

Should I file a separate issue for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

localhost:3000 not rendering app, old PWA name still visible
Under the dev tools, head on to the "Application" tab. Here, on the left side, you'll find an option "Service Worker".
Read more >
Setting up a Node development environment - MDN Web Docs
In Node/Express a web application creates and runs its own web server! ... Open a browser and navigate to http://localhost:3000/ to see the ......
Read more >
Testing Your App | Cypress Documentation
What's more - since Cypress enables you to do things like stub network requests you can build out your web application without even...
Read more >
Debug Browser Apps using Visual Studio Code
When you hit F5 or the Start button in the Run and Debug view, http://localhost:8000 will be opened in debug mode. If you'd...
Read more >
Use React and Spring Boot to Build a Simple CRUD App
This article shows you how to use them in the same app and secure it all ... app and hit http://localhost:8080/api/groups with your...
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