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.

Webserver home page not showing servers

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rianadoncommented, May 3, 2016

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.

  1. 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.

  2. I also tried testing the stream with the nodejs eventsource library (which the connect-sse library uses for testing), and it works!

  3. 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!

  4. I just tested the connect-sse module with the same versions of Express and that module, and they both work.

  5. I’m able to reproduce this now with a simple example. See this gist.

  6. 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.

  7. 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.

0reactions
rianadoncommented, May 4, 2016

You’re welcome.

Read more comments on GitHub >

github_iconTop 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 >

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