live-server-web-extension icon indicating copy to clipboard operation
live-server-web-extension copied to clipboard

Live server isn't working!

Open sainanuj opened this issue 6 years ago • 20 comments

Hey Ritwick, I'd installed it in my chrome and it didn't work. Something's wrong.

sainanuj avatar Nov 06 '17 13:11 sainanuj

Can you clarify it with more details?

ritwickdey avatar Nov 07 '17 15:11 ritwickdey

Like it's literally not doing what it's supposed to do. I'm making changes to the source code (HTML/CSS) and even though I save 'em, it won't reload them in the browser.

sainanuj avatar Nov 08 '17 15:11 sainanuj

Is this only static items?

ritwickdey avatar Nov 08 '17 15:11 ritwickdey

What you've entered in Actual Server address & Live Server address?

ritwickdey avatar Nov 08 '17 15:11 ritwickdey

It works fine on VS Code. I was talking about the chrome extension you've built. Do you mind telling me how it works?

sainanuj avatar Nov 08 '17 15:11 sainanuj

https://www.youtube.com/watch?v=54wcX1G2GH8

Here is a short tutorial.

(Yes, for only static file - this extension is not great.)

ritwickdey avatar Nov 08 '17 16:11 ritwickdey

Tips: For only static files, the Actual address & Live server address will be same .

ritwickdey avatar Nov 08 '17 16:11 ritwickdey

Sometimes i got this error, weird. any idea why ? Error: connect ECONNREFUSED 127.0.0.1:80 at Object.exports._errnoException (util.js:1050:11) at exports._exceptionWithHostPort (util.js:1073:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)

noxasch avatar Dec 14 '17 19:12 noxasch

This error occurs to me if I start live server in the editor before I start the Apache server in XAMPP.

Mikael-Sundstrom avatar Dec 28 '17 16:12 Mikael-Sundstrom

Hi, @ritwickdey, I thought I would ask for help inside Issue #6 since the title is appropriate for my case.

What follows is that I can use the Live Server (VS extension) for HTML files without problems by doing:

  • Open VS Code
  • Open HTML File
  • Click 'Go Live' (then a browser tab opens and live reload happens fine).

But I'm having trouble trying to make it work with the Live Reload Browser Extension (in order to use it with PHP files). Before coming here I made sure I read the FAQ.md a couple times but I couldn't make it work at all (not even with HTML files would work!).

I'm trying the following steps:

  • Start XAMPP
  • Open VS Code
  • Open HTML File
  • Click 'Go Live'
  • At this stage the address bar of the browser is pointing to the following URL: 'http://127.0.0.1:5500/index.html', then I
  • Go to Live Reload Browser Extension
  • Toggle 'On'
  • Check "I don't want proxy setup"
  • Fill 'Live Server Address' field with value 'http://127.0.0.1:5500/'
  • Fill 'Actual Server Address' with value 'http://localhost:80/sites/example.com/' which is where my 'index.html' is located (because I thought [workspace] from the docs mean the root directory to my files)
  • I then go to browser address bar and navigate to 'http://localhost/sites/example.com/' (the same 'Actual Server Address' but without the port, as mentioned in the 3rd item from the FAQ.md) to see my 'index.html' page
  • But then when I modify code and save the file in VS Code, it doesn't reload the browser.

What am I doing wrong? I really need to make it work so that I can make VS Code my main web editor! :)

Notes: I tried using Chrome and Firefox (latest versions) and I checked my PHP - it's version 7.1.1.

fmaiabatista avatar Jan 13 '18 01:01 fmaiabatista

Hi, try to remove port 80 in the actual server address and leave it with http://localhost/sites/example.com/.

I have also recorded a YouTube clip https://youtu.be/3Vl25iiBIeo to demonstrate. Unfortunately, I don't have a microphone on my computer, but it may help. Please let me know if it works. Then I can clarify it in the documentation.

Mikael-Sundstrom avatar Jan 13 '18 19:01 Mikael-Sundstrom

Hi @Mikael-Sundstrom, it worked perfectly!

Removing the port from 'Actual Live Address' was the solution.

Thank you a lot!

fmaiabatista avatar Jan 14 '18 14:01 fmaiabatista

alt+L O => category icon view!

What should I do? <img src="https://user-images.githubusercontent.com/35879358/35693423-7ee775b2-07c1-11e8-9cc8-b9b61fec1633.PNG" alt="eerror">

hwarim avatar Feb 01 '18 17:02 hwarim

Hello, have you tried to follow the Setup.md. I also recommend that you to read The common misconception.

Have you installed the browser add-on? Then if you choosing direct setup, you must visit your PHP server address. For instance. http://localhost/workspace

Mikael-Sundstrom avatar Feb 02 '18 18:02 Mikael-Sundstrom

Live Server is not connecting to the browser since yesterday. Is it something that everyone have issue with?

raicheljohn28 avatar Feb 13 '19 15:02 raicheljohn28

I was having this issue I uninstall vscode and chrome. Reinstalled them. Then ensured that my html page had the following minimal tags. It worked for me.

<html land="en">
<head>
    <script src="https://unpkg.com/vue"></script>
</head>
<body>
<div id="app">
    <h1> {{msg}} </h1>
</div> 
<script>
    var app = new Vue({
        el: '#app'    ,
        data:{
            msg: "its working!"
        }
    });
</script>
</body>

</html>

sheecegardezi avatar Sep 23 '19 03:09 sheecegardezi

Please help me, after clicking on go live, the browser gives error ie this page is not working along with 127.0.0.1 is not sending any data. here is the screen shot Screenshot (14)

ignite246 avatar Nov 16 '19 14:11 ignite246

Screen Shot 2020-04-06 at 8 11 50 AM it was working fine up until yesterday but when i open live server on VSCode it does not open the html and it redirects it to this page, any help?

djdisarm avatar Apr 06 '20 15:04 djdisarm

This might solve your issue : https://stackoverflow.com/questions/61169067/live-server-vscode-this-page-isn-t-working-127-0-0-1-didn-t-send-any-data-err/61733333#61733333

wimpywarlord avatar Sep 08 '20 21:09 wimpywarlord

please help me No response from Go live button extension ping is so high

7568632342 avatar Oct 24 '20 06:10 7568632342