{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/express/issues/2652","labels_url":"https://api.github.com/repos/strongloop/express/issues/2652/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/express/issues/2652/comments","events_url":"https://api.github.com/repos/strongloop/express/issues/2652/events","html_url":"https://github.com/strongloop/express/issues/2652","id":77638296,"number":2652,"title":"TypeError: Failed to decode param ''","user":{"login":"MichaelHedman","id":3403815,"avatar_url":"https://avatars.githubusercontent.com/u/3403815?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelHedman","html_url":"https://github.com/MichaelHedman","followers_url":"https://api.github.com/users/MichaelHedman/followers","following_url":"https://api.github.com/users/MichaelHedman/following{/other_user}","gists_url":"https://api.github.com/users/MichaelHedman/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelHedman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelHedman/subscriptions","organizations_url":"https://api.github.com/users/MichaelHedman/orgs","repos_url":"https://api.github.com/users/MichaelHedman/repos","events_url":"https://api.github.com/users/MichaelHedman/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelHedman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2015-05-18T12:31:33Z","updated_at":"2015-06-03T13:54:35Z","closed_at":null,"body":"We have a nodejs app running on Heroku, and sometimes, without warning, all requests on a specific web dyno start to fail with a 400 Bad Request response. In the logs we can see entries like this:\r\n```\r\nTypeError: Failed to decode param '' at decode_param (/app/node_modules/express/lib/router/layer.js:162:15)\r\n```\r\nRestarting the app usually helps, but not always. Any idea what could be wrong?\r\n\r\nOur package.json dependencies:\r\n```\r\n\"dependencies\": {\r\n    \"body-parser\": \"^1.12.2\",\r\n    \"compression\": \"^1.4.3\",\r\n    \"ejs\": \"~1.0.0\",\r\n    \"errorhandler\": \"^1.0.0\",\r\n    \"express\": \"~4.12.3\",\r\n    \"extend\": \"1.2.1\",\r\n    \"forever\": \"^0.14.1\",\r\n    \"jslint\": \"^0.3.1\",\r\n    \"mandrill-api\": \"^1.0.39\",\r\n    \"newrelic\": \"1.17.2\",\r\n    \"querystring\": \"^0.2.0\",\r\n    \"request\": \"2.29.0\",\r\n    \"requirejs\": \"^2.1.16\",\r\n    \"ws\": \"^0.4.32\"\r\n  },\r\n```\r\nWe haven't been able to reproduce or trigger this error in a test environment. Since this error is thrown by `decodeURIComponent`, we thought that we were missing some encoding. But after setting `LANG=en_US.UTF-8` the problem still occurs. We have also tried running the app on a local ubuntu vagrant image after removing all installed locales, but that didn't trigger the problem either."},"comment":{"url":"https://api.github.com/repos/strongloop/express/issues/comments/108431695","html_url":"https://github.com/strongloop/express/issues/2652#issuecomment-108431695","issue_url":"https://api.github.com/repos/strongloop/express/issues/2652","id":108431695,"user":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T13:54:35Z","updated_at":"2015-06-03T13:54:35Z","body":"Hi @MichaelHedman any updates? Is there anything determined that Express can change to address this, or is it boiled down to a Node.js bug (is there a bug report to Node.js?)?"}}