-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error: Not Found #1
Comments
Hello,
When does this error occur?
Is the error regularly obtained or not?
Thank you in advance for more details
Sincerely
Le 15 juil. 2023 à 05:45 +0200, Sefinek ***@***.***>, a écrit :
… I receive sometimes an error:
0|blocklist | 05:44:27.847 15.07.2023: Error: Not Found
0|blocklist | at n.error (/home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:1793)
0|blocklist | at /home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:2327
can it be fixed? Please
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thanks for your answer
(polish timezone)
Every few minutes, this error appears when the client sends GET requests to statically served files.
Yes My source code: |
It's interesting that this error keeps recurring. This evening I'm going to take a look at the source of the error and try to correct it quickly. I think I know the source of problem
Le 15 juil. 2023 à 15:36 +0200, Sefinek ***@***.***>, a écrit :
… Thanks for your answer
> When does this error occur?
> (polish timezone)
0|blocklis | 14:56:40.356 15.07.2023: Error: Not Found
0|blocklis | at n.error (/home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:1793)
0|blocklis | at /home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:2327
0|blocklis | 14:57:05.359 15.07.2023: Error: Not Found
0|blocklis | at n.error (/home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:1793)
0|blocklis | at /home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:2327
0|blocklis | 15:00:52.321 15.07.2023: Error: Not Found
0|blocklis | at n.error (/home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:1793)
0|blocklis | at /home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:2327
0|blocklis | 15:11:17.795 15.07.2023: Error: Not Found
0|blocklis | at n.error (/home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:1793)
0|blocklis | at /home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:2327
0|blocklis | 15:21:46.046 15.07.2023: Error: Not Found
0|blocklis | at n.error (/home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:1793)
0|blocklis | at /home/ubuntu/node/www/Sefinek-Blocklist-Collection/node_modules/express-autoindex/dist/index.cjs.js:1:2327```
Every few minutes, this error appears when the client sends GET requests to statically served files.
> Is the error regularly obtained or not?
Yes
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Thank you @c-bertran, it would be great to eliminate this error as the requests ultimately end up with a 500 error.
|
I've just gone through the whole code again. The new version is 1.1.1 I've tried this on several fairly brutal unit tests and I can't get this bug anymore. Nevertheless, if it comes back from your side, I'll keep on correcting the bug based on your source code directly. Thank you again for trusting me and for your patience. |
I've just reworked the error handling a bit, and the most important thing is to explain how it's handled in the README. I've also added the production mode, which makes it possible to have error messages that are much less explanatory for security reasons, and vice versa. Is it now working properly on your side @sefinek24 ? |
I'll check this today, |
Hello again @c-bertran. I've checked the latest version, and from now on, every request to a non-existing static file results in a 500 error. Could you please fix this? Or provide an option to disable it?
|
It's really strange, in my case it's 404 requests that come out, not 500. I'll run the tests again in an hour when I get home from work. |
Okay no problem 👍 (: |
I was busy with my company, so I couldn't reply first. I've modified the code to be even closer to Node's errors, and after a lot of testing, especially on node_modules of several GB and under Debian, Windows 11 and MacOs 13, non-existent files and folders always return a 404. |
The new version 1.1.3 is out, and if the error persists, I honestly can't understand it. |
something went wrong >:
|
To understand the bug I'm going to need your code |
thank you, I'll need a few hours to debug. |
I've just found the origin of the bug, it's pretty tricky but correctable. I'm going to take advantage of this as I'm going to modify several things to add the possibility of creating your own page template. |
I've just released version 1.3.0 of the lib @sefinek24 . I hope this time it will be good ^^ |
Thank you @c-bertran for your effort put into fixing this. I really appreciate it and thank you. Error 500 has been fixed, but unfortunately, a few new errors have appeared now.
Thank you also for adding the |
First of all, this is excellent news for 500 errors. As for the endpoints, I'll get to them as a matter of urgency - they're a pretty annoying bug. I'm going to close this issue, I've opened one on new errors. Thanks again for your patience |
I receive sometimes an error:
can it be fixed? Please
The text was updated successfully, but these errors were encountered: