We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In prod, try to add a copilot payment. An Invalid request parameters error is shown in the UI:
Invalid request parameters
In the logs, I see:
2019-01-06T22:43:25.375337+00:00 heroku[router]: at=info method=POST path="/api/v1/payments/copilot/" host=x.topcoder.com request_id=a526a1e9-08cc-4503-ba06-a148ea8e2c91 fwd="123.243.195.143" dyno=web.1 connect=0ms service=5ms status=302 bytes=334 protocol=https 2019-01-06T22:43:25.510548+00:00 app[web.1]: Error: Can't set headers after they are sent. 2019-01-06T22:43:25.510567+00:00 app[web.1]: at validateHeader (_http_outgoing.js:491:11) 2019-01-06T22:43:25.510568+00:00 app[web.1]: at ServerResponse.setHeader (_http_outgoing.js:498:3) 2019-01-06T22:43:25.510571+00:00 app[web.1]: at ServerResponse.header (/app/node_modules/express/lib/response.js:730:10) 2019-01-06T22:43:25.510572+00:00 app[web.1]: at ServerResponse.send (/app/node_modules/express/lib/response.js:170:12) 2019-01-06T22:43:25.510574+00:00 app[web.1]: at ServerResponse.json (/app/node_modules/express/lib/response.js:256:15) 2019-01-06T22:43:25.510575+00:00 app[web.1]: at method.then (/app/src/common/helper.js:119:15) 2019-01-06T22:43:25.510578+00:00 app[web.1]: at <anonymous> 2019-01-06T22:43:25.692474+00:00 app[web.1]: error: Error happened in CopilotPaymentController#getAll 2019-01-06T22:43:25.692479+00:00 app[web.1]: ValidationError: [object Object] { 2019-01-06T22:43:25.692484+00:00 app[web.1]: "query": { 2019-01-06T22:43:25.692486+00:00 app[web.1]: "sortBy" [1]: -- missing -- 2019-01-06T22:43:25.692487+00:00 app[web.1]: }, 2019-01-06T22:43:25.692489+00:00 app[web.1]: "topcoderUser": { 2019-01-06T22:43:25.692491+00:00 app[web.1]: "handle": "ghostar", 2019-01-06T22:43:25.692492+00:00 app[web.1]: "roles": [ 2019-01-06T22:43:25.692494+00:00 app[web.1]: "copilot", 2019-01-06T22:43:25.692495+00:00 app[web.1]: "Topcoder User" 2019-01-06T22:43:25.692497+00:00 app[web.1]: ] 2019-01-06T22:43:25.692498+00:00 app[web.1]: } 2019-01-06T22:43:25.692500+00:00 app[web.1]: } 2019-01-06T22:43:25.692501+00:00 app[web.1]: 2019-01-06T22:43:25.692503+00:00 app[web.1]: [1] "sortBy" is required 2019-01-06T22:43:25.692505+00:00 app[web.1]: at Object.exports.process (/app/node_modules/joi/lib/errors.js:181:19) 2019-01-06T22:43:25.692507+00:00 app[web.1]: at internals.Object._validateWithOptions (/app/node_modules/joi/lib/types/any/index.js:651:31) 2019-01-06T22:43:25.692510+00:00 app[web.1]: at module.exports.internals.Any.root.validate (/app/node_modules/joi/lib/index.js:121:23) 2019-01-06T22:43:25.692511+00:00 app[web.1]: at module.exports.internals.Any.root.attempt (/app/node_modules/joi/lib/index.js:150:29) 2019-01-06T22:43:25.692513+00:00 app[web.1]: at Object.serviceMethodWithValidation [as getAll] (/app/src/common/helper.js:88:30) 2019-01-06T22:43:25.692514+00:00 app[web.1]: at getAll (/app/src/controllers/CopilotPaymentController.js:31:50) 2019-01-06T22:43:25.692516+00:00 app[web.1]: at controller.(anonymous function) (/app/src/common/helper.js:117:7) 2019-01-06T22:43:25.692518+00:00 app[web.1]: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5) 2019-01-06T22:43:25.692519+00:00 app[web.1]: at next (/app/node_modules/express/lib/router/route.js:137:13) 2019-01-06T22:43:25.692521+00:00 app[web.1]: at actions.push (/app/src/app.js:92:16) 2019-01-06T22:43:25.692522+00:00 app[web.1]: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5) 2019-01-06T22:43:25.692524+00:00 app[web.1]: at next (/app/node_modules/express/lib/router/route.js:137:13) 2019-01-06T22:43:25.692525+00:00 app[web.1]: at actions.push (/app/src/app.js:78:16) 2019-01-06T22:43:25.692527+00:00 app[web.1]: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5) 2019-01-06T22:43:25.692529+00:00 app[web.1]: at next (/app/node_modules/express/lib/router/route.js:137:13) 2019-01-06T22:43:25.692530+00:00 app[web.1]: at actions.push (/app/src/app.js:53:7) 2019-01-06T22:43:25.692532+00:00 app[web.1]: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5) 2019-01-06T22:43:25.692533+00:00 app[web.1]: at next (/app/node_modules/express/lib/router/route.js:137:13) 2019-01-06T22:43:25.692535+00:00 app[web.1]: at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3) 2019-01-06T22:43:25.692536+00:00 app[web.1]: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5) 2019-01-06T22:43:25.692538+00:00 app[web.1]: at /app/node_modules/express/lib/router/index.js:281:22 2019-01-06T22:43:25.692540+00:00 app[web.1]: at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12) 2019-01-06T22:43:25.692541+00:00 app[web.1]: at next (/app/node_modules/express/lib/router/index.js:275:10) 2019-01-06T22:43:25.692543+00:00 app[web.1]: at cookieParser (/app/node_modules/cookie-parser/index.js:70:5) 2019-01-06T22:43:25.692544+00:00 app[web.1]: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5) 2019-01-06T22:43:25.692546+00:00 app[web.1]: at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13) 2019-01-06T22:43:25.692547+00:00 app[web.1]: at /app/node_modules/express/lib/router/index.js:284:7 2019-01-06T22:43:25.692549+00:00 app[web.1]: at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12) 2019-01-06T22:43:25.692550+00:00 app[web.1]: at next (/app/node_modules/express/lib/router/index.js:275:10) 2019-01-06T22:43:25.692552+00:00 app[web.1]: at Immediate._onImmediate (/app/node_modules/express-session/index.js:489:7) 2019-01-06T22:43:25.692554+00:00 app[web.1]: at runCallback (timers.js:814:20) 2019-01-06T22:43:25.692555+00:00 app[web.1]: at tryOnImmediate (timers.js:768:5) 2019-01-06T22:43:25.692557+00:00 app[web.1]: at processImmediate [as _immediateCallback] (timers.js:745:5)
The text was updated successfully, but these errors were encountered:
January 2019 release challenge
41d9244
#125 #118 #107 #119 #109 #115
b51986f
topcoder-platform/topcoder-x-ui#125 topcoder-platform/topcoder-x-ui#118 topcoder-platform/topcoder-x-ui#107 topcoder-platform/topcoder-x-ui#119 topcoder-platform/topcoder-x-ui#109 topcoder-platform/topcoder-x-ui#115
7a1d0ba
No branches or pull requests
To reproduce
In prod, try to add a copilot payment. An
Invalid request parameters
error is shown in the UI:In the logs, I see:
The text was updated successfully, but these errors were encountered: