-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
Closed
Milestone
Description
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:
TypeError: Failed to decode param '' at decode_param (/app/node_modules/express/lib/router/layer.js:162:15)
Restarting the app usually helps, but not always. Any idea what could be wrong?
Our package.json dependencies:
"dependencies": {
"body-parser": "^1.12.2",
"compression": "^1.4.3",
"ejs": "~1.0.0",
"errorhandler": "^1.0.0",
"express": "~4.12.3",
"extend": "1.2.1",
"forever": "^0.14.1",
"jslint": "^0.3.1",
"mandrill-api": "^1.0.39",
"newrelic": "1.17.2",
"querystring": "^0.2.0",
"request": "2.29.0",
"requirejs": "^2.1.16",
"ws": "^0.4.32"
},
We 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.
Metadata
Metadata
Assignees
Labels
No labels