Webserver home page not showing servers
See original GitHub issueI just installed hotel today, and it looks very cool! However, after I started hotel and added a server, the webpage stills displays “Welcome, please enjoy your stay! Use hotel command-line to add servers”.
Interestingly though, once I run hotel stop
, the list with the server’s name appears.
I can also still use hotel by navigating to localhost:2000/project
.
This happens in both the latest versions of Chrome and Firefox on Windows 10.
Thank you!
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Web resource is not displayed - IBM
If you are not able to display a resource in your browser, follow these steps: Verify that your HTTP server is healthy by...
Read more >Website down? Server down? 5 network troubleshooting tools ...
We've all been there: A website refuses to load, returning a generic “website is not available” or “URL was not found on this...
Read more >Apache Server does not display the correct website
I've a website setup in my /var/www/example.com folder. I created a config file for that in /etc/apache2/sites-available/example.com.conf . Now ...
Read more >Server Not Found - Troubleshoot connection problems
If you can't connect to a website, you may see the Server Not Found error message. Learn how to troubleshoot and fix this...
Read more >How To Troubleshoot Common Site Issues on a Linux Server
Everybody runs into issues with their website at one point or another. This guide will help you troubleshoot some common issues and get...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I forgot to mention this as I deemed it unimportant, but the computer on which hotel is not working is in fact running a Windows Insiders Build (14332).
Since I tried installing hotel on a regular Windows build (same node version) and it worked, I guess this is either somehow related to my specific machine or the different build of Windows (but I have no idea why 😕 ).
Moving on, the
/_/events
endpoint is definitely the problem. It displays as loaded in the chrome dev tools on the working computer but displays as pending on the computer with the Insiders build.I wrote a quick program to simulate an HTTP request to
/_/events
, and both computers output almost the same result (the only difference is the date header), so the stream is being generated correctly.I also tried testing the stream with the nodejs
eventsource
library (which the connect-sse library uses for testing), and it works!So, thinking this was a problem with Chrome or Firefox or Node.js, I tried running the Node.js example from this HTML5 Rocks article, which uses almost the same code as hotel, and that works!
I just tested the
connect-sse
module with the same versions of Express and that module, and they both work.I’m able to reproduce this now with a simple example. See this gist.
I’ve found the issue (at least in my example). The event stream only works if the hostname parameter is not supplied to
server.listen
. I’m now completely baffled.See my simpler test on the gist for more details. Now I have no idea if this is an issue with node, express, or
connect-sse
.So I went back to the earlier Node.js example from the HTML5 Rocks article and added
'localhost'
after the port number, and the example stopped working! So I guess this is an issue with Node.js itself and not hotel.I’ll update this comment as I do more testing, and I guess if you are able to you could try running hotel on a computer with a Windows Insider Preview.
You’re welcome.