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.

Error: 404 Not Found

See original GitHub issue

Hey ya, I know this issue has probably been dealt with before, however I can’t find any proper workarounds to it.

I am getting this message: `Error: 404 Not Found Sorry, the requested URL ‘http://localhost:8000/main.html’ caused an error:

File does not exist.`

Everytime I run a test eel project. First I had issues with Python displaying a osError because some other program was using port 8000. After I killed that task to leave that port free for eel, it only showed me the message you can see above.

Here’s the code:

eeltest.py `import eel

eel.init(‘web’) eel.start(‘main.html’)`

main.html <p>Hola</p>

Any help will be very appreciated in advance.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17

github_iconTop GitHub Comments

2reactions
jcpaniaguascommented, Oct 7, 2020

I already had have the same problem and i was be able to solved. The way i’ve solved is just change the line:

eel.init('web')

to the absolute path, like

eel.init('C:/.../web') where my web folder is

I hope that helps!

2reactions
burntcarrotcommented, Feb 14, 2020

I found out the solution, kill all the processes running on that port. I didn’t get any error because it crashed on startup.

Anyone who is stuck here, the fix is:

  • Kill the processes on the port by using fuser -k [port_name]/tcp.
  • Build the file using the steps mentioned here.
  • Run the executable again! It works now!

This is not related to the cache as mentioned above, I tried clearing the cache as well keeping the cache.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error 404 not found - What does it mean & how to fix it! - IONOS
Something along the lines of '404 Not Found'. A 404 error is the standardized HTTP status code. The message is sent from the...
Read more >
404 Page Not Found Error: What It Is and How to Fix It - Lifewire
A 404 error is an HTTP status code that means that the page you were trying to reach on a website couldn't be...
Read more >
HTTP 404 - Wikipedia
In computer network communications, the HTTP 404, 404 not found, 404, 404 error, page not found or file not found error message is...
Read more >
How to Fix Error 404 Not Found on Your WordPress Site - Kinsta
The 404 (Not Found) status code indicates that the origin server did not find a current representation for the target resource or is...
Read more >
What Does Error 404 Not Found Mean? - Semrush
What Are 404 Errors? ... A 404 error is when a website's server can't find the page you're trying to access via a...
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