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

500 Internal Server Error - on directory/file that does not exist, instead of 404 #41

Open
clach04 opened this issue Nov 16, 2024 · 0 comments

Comments

@clach04
Copy link
Owner

clach04 commented Nov 16, 2024

http://localhost:9999/file/does_not_exist

results in:

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

500, instead of 404.

   File "...webook_server/webook_opds_server.py", line 833, in opds_browse
     files = os.listdir(os_path)
 FileNotFoundError: [Errno 2] No such file or directory: '...../does_not_exist'
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

1 participant