{"action":"opened","issue":{"url":"https://api.github.com/repos/zeit/next.js/issues/4887","repository_url":"https://api.github.com/repos/zeit/next.js","labels_url":"https://api.github.com/repos/zeit/next.js/issues/4887/labels{/name}","comments_url":"https://api.github.com/repos/zeit/next.js/issues/4887/comments","events_url":"https://api.github.com/repos/zeit/next.js/issues/4887/events","html_url":"https://github.com/zeit/next.js/issues/4887","id":346991346,"node_id":"MDU6SXNzdWUzNDY5OTEzNDY=","number":4887,"title":"Internal Server Errors with faulty URLs","user":{"login":"codingcircus","id":3910775,"node_id":"MDQ6VXNlcjM5MTA3NzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3910775?v=4","gravatar_id":"","url":"https://api.github.com/users/codingcircus","html_url":"https://github.com/codingcircus","followers_url":"https://api.github.com/users/codingcircus/followers","following_url":"https://api.github.com/users/codingcircus/following{/other_user}","gists_url":"https://api.github.com/users/codingcircus/gists{/gist_id}","starred_url":"https://api.github.com/users/codingcircus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingcircus/subscriptions","organizations_url":"https://api.github.com/users/codingcircus/orgs","repos_url":"https://api.github.com/users/codingcircus/repos","events_url":"https://api.github.com/users/codingcircus/events{/privacy}","received_events_url":"https://api.github.com/users/codingcircus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-02T12:32:37Z","updated_at":"2018-08-02T12:32:37Z","closed_at":null,"author_association":"NONE","body":"# Bug report\r\n\r\n## Describe the bug\r\n\r\nRight now faulty urls that are handled with nextjs' handleRequest function lead to unwanted 500 errors. The problem seems to be that when decodeURIComponent is unable to decode a url, the default exception handler in `server/index.js` just handles it as an internal server error.\r\n\r\n## To Reproduce \r\n\r\n1. Set a static directory in an nextjs express implementation `e.g.: server.use(PATH_PREFIX, handler);`\r\n2. Run the server\r\n3. Navigate to a url like `${PATH_PREFIX}/_next/static/css/bundles/pages%25DE%7E%25C7%251FY/Page.js-5e92d8e75e056f4bfaca.css` or `${PATH_PREFIX }/%DE~%C7%1fY/`\r\n\r\n## Expected behavior\r\nIdeally this would be a 400 Bad Request. Also a way to handle these exceptions in our own server implementations would be appreciated\r\n\r\n## System information\r\n - Version of Next.js: 6.1.1\r\n\r\n## Additional context\r\nOur server runs with Dockers default nodejs image. \r\n"}}
{"actor":{"display_login":"codingcircus"}}