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

ao5 wird autograder issue #4

Open
sadye opened this issue Apr 29, 2022 · 2 comments
Open

ao5 wird autograder issue #4

sadye opened this issue Apr 29, 2022 · 2 comments
Assignees

Comments

@sadye
Copy link

sadye commented Apr 29, 2022

Screen Shot 2022-04-29 at 4 44 54 PM

Screen Shot 2022-04-29 at 4 44 45 PM

Hello, I turned in the autograder and origianlly got 65000 points, then tried to fix it and now its not running on the port. It is also saying that a directory doesnt exist that obviously does (see above). Please help

Screen Shot 2022-04-29 at 4 51 07 PM

@sadye
Copy link
Author

sadye commented Apr 29, 2022

Also locally my server runs and my log gets added to so i really dont know what the issue is

@camsimba
Copy link

camsimba commented Apr 29, 2022

Hey @sadye, lets see if we can figure this out. Looking at your file hierarchy, it looks like you don't have the directory './log/'. This is fine if you are creating it and the log file within it in your code, but it looks like you don't check to see if it is there before making the log file at file path './log/access.log' (or wherever you are trying to store the log file). This stands out to me as the potential issue, as if you are trying to create a log file within a directory that doesn't exist, you would be getting some path errors.

Trying using code such as fs.existsSync(<path>) and fs.mkdirSync(<path>) to verify the directory exists and let me know if that helps any!

@camsimba camsimba self-assigned this Apr 29, 2022
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