Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

500 Internal Server Error for misspelled module names #117

Closed
rsp opened this issue Nov 18, 2019 · 0 comments · Fixed by #179
Closed

500 Internal Server Error for misspelled module names #117

rsp opened this issue Nov 18, 2019 · 0 comments · Fixed by #179

Comments

@rsp
Copy link
Contributor

rsp commented Nov 18, 2019

I noticed a difference between 404 of wrong path of a good module and a bad module.

Bad path of a good module gives HTTP 404 Not Found response and a short body but no Content-Type header:

$ curl https://deno.land/x/dirname/wrong-file.ts
404: Not Found

But when there is a mistake in the module name, the status is 500 Internal Server Error with Content-Type: text/html; charset=UTF-8 and a lot of HTML, even when requested by curl:

$ curl https://deno.land/x/wrong-module/mod.ts
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
[...]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant