I open /admin/databases/:id on a Metabase instance, where :id is any integer that does not correspond to an existing database, and see raw HTML for a 500 Internal Server Error.
To Reproduce
Go to /admin/databases and check what database IDs exist (on a pristine system only ID 1 would exist)
Go to /admin/databases/100 (assuming ID 100 does not correspond to an existing database; any other non-existent ID also works)
See the literal text <html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx</center> </body> </html> (see screenshot below)
In browser dev tools, see that this is the raw response from a GET /api/database/100 HTTP request
Expected behavior
I would expect to get a 404 Not Found page instead, similar to what I get when I go to /admin/gobbledegook.
Describe the bug
I open
/admin/databases/:id
on a Metabase instance, where:id
is any integer that does not correspond to an existing database, and see raw HTML for a 500 Internal Server Error.To Reproduce
/admin/databases
and check what database IDs exist (on a pristine system only ID 1 would exist)/admin/databases/100
(assuming ID 100 does not correspond to an existing database; any other non-existent ID also works)<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx</center> </body> </html>
(see screenshot below)GET /api/database/100
HTTP requestExpected behavior
I would expect to get a 404 Not Found page instead, similar to what I get when I go to
/admin/gobbledegook
.Logs
No response
Information about your Metabase installation
Severity
Annoying
Additional context