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

not found static assets are returning 500 status code when running the serve command #1102

Closed
thescientist13 opened this issue Apr 29, 2023 · 0 comments · Fixed by #1103
Closed
Labels
bug Something isn't working CLI v0.28.2
Milestone

Comments

@thescientist13
Copy link
Member

Type of Change

Bug

Summary

Noticing that when running greenwood serve and accessing a static asset that doesn't exist, the browser is getting a 500 error instead of a 404.

Screen Shot 2023-04-29 at 10 41 26 AM

Details

In the terminal there is also an ugly error as well

[Error: ENOENT: no such file or directory, open '/Users/analogstudios/Workspace/analogstudios/repos/www.blissfestri.com/public/foo.png'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/analogstudios/Workspace/analogstudios/repos/www.blissfestri.com/public/foo.png'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLI v0.28.2
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant