Skip to content

404, message File not found #16

@Piero24

Description

@Piero24

Hi Piero
I started the application but I can't access the web page. In the prompt I receive these messages, can you help me solve it?

Subscribe to WebOfferte Channel: https://linktr.ee/webofferte to support the development!


 ********************   Thank you!   ********************


127.0.0.1 - - [28/Feb/2025 13:08:59] code 404, message File not found
127.0.0.1 - - [28/Feb/2025 13:08:59] "GET /index.html HTTP/1.1" 404 -
127.0.0.1 - - [28/Feb/2025 13:08:59] code 404, message File not found
127.0.0.1 - - [28/Feb/2025 13:08:59] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [28/Feb/2025 13:09:07] code 404, message File not found
127.0.0.1 - - [28/Feb/2025 13:09:07] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [28/Feb/2025 13:09:09] code 404, message File not found
127.0.0.1 - - [28/Feb/2025 13:09:09] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [28/Feb/2025 13:09:10] code 404, message File not found
127.0.0.1 - - [28/Feb/2025 13:09:10] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [28/Feb/2025 13:09:10] code 404, message File not found
127.0.0.1 - - [28/Feb/2025 13:09:10] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [28/Feb/2025 13:09:10] code 404, message File not found
127.0.0.1 - - [28/Feb/2025 13:09:10] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [28/Feb/2025 13:09:10] code 404, message File not found
127.0.0.1 - - [28/Feb/2025 13:09:10] "GET / HTTP/1.1" 404 -
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 50807)
Traceback (most recent call last):
  File "C:\TelegramBot-AmazonOffers-main\src\web\activity_inspector.py", line 57, in do_GET
    with open(file_path, 'rb') as file:
         ^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'src/web/index.html'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ced\AppData\Local\Programs\Python\Python312\Lib\socketserver.py", line 318, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Users\ced\AppData\Local\Programs\Python\Python312\Lib\socketserver.py", line 349, in process_request
    self.finish_request(request, client_address)
  File "C:\Users\ced\AppData\Local\Programs\Python\Python312\Lib\socketserver.py", line 362, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Users\ced\AppData\Local\Programs\Python\Python312\Lib\socketserver.py", line 761, in __init__
    self.handle()
  File "C:\Users\ced\AppData\Local\Programs\Python\Python312\Lib\http\server.py", line 436, in handle
    self.handle_one_request()
  File "C:\Users\ced\AppData\Local\Programs\Python\Python312\Lib\http\server.py", line 424, in handle_one_request
    method()
  File "C:\TelegramBot-AmazonOffers-main\src\web\activity_inspector.py", line 61, in do_GET
    self.send_error(404, "File not found")
  File "C:\Users\ced\AppData\Local\Programs\Python\Python312\Lib\http\server.py", line 491, in send_error
    self.wfile.write(body)
  File "C:\Users\ced\AppData\Local\Programs\Python\Python312\Lib\socketserver.py", line 840, in write
    self._sock.sendall(b)
ConnectionAbortedError: [WinError 10053] Connessione interrotta dal software del computer host
----------------------------------------
127.0.0.1 - - [28/Feb/2025 13:12:18] code 404, message File not found
127.0.0.1 - - [28/Feb/2025 13:12:18] "GET / HTTP/1.1" 404 -

Originally posted by @Marcod83 in #13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions