Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Invalid time value #855

Closed
babadoctor opened this issue Apr 11, 2023 · 3 comments
Closed

RangeError: Invalid time value #855

babadoctor opened this issue Apr 11, 2023 · 3 comments

Comments

@babadoctor
Copy link

Environment Versions

  1. OS Type
    Linux diode 5.10.0-9-amd64 Fix for nested subdirectory paths #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
    (debian bullseye)

  2. Node version: $ node --version
    v12.22.12

  3. http-server version: $ http-server --version
    v14.1.1

Steps to reproduce

sudo http-server -p 80 --log-ip

Expected result

runs like normal

Actual result

for some unknown reason http-server quits with error, this was caused when a vulnerability scanner did something to it and it crashed.
Screen_Shot_2023-04-10_at_5 42 34_PM

...

Other information

@zbynek
Copy link
Contributor

zbynek commented Apr 11, 2023

Do you have index.html in your root folder? What is the last modification date of it? I can reproduce the error if I manually set the modification date of index.html to some nonsense (e.g. using touch -d '1937-01-31 8:46:26' index.html
on Linux).

@babadoctor
Copy link
Author

Do you have index.html in your root folder? What is the last modification date of it? I can reproduce the error if I manually set the modification date of index.html to some nonsense (e.g. using touch -d '1937-01-31 8:46:26' index.html on Linux).

I am running a hugo static webpage and in the root directory of the webpage I am running http-server, and it seems to work.

The index.html file is in a folder within the root directory called "public".
Screen Shot 2023-04-11 at 5 08 09 PM

@babadoctor
Copy link
Author

I'm just going to chalk this up to hugo doing something weird with the modification date of the files, and will resolve to not leave it running for extended periods of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants