Continue lendo
Indicados para você
{"status":500,"response":{"errorCode":"SCHEMA_VALIDATION_ERROR","errorMessage":"data should have required property 'bcp'","errorDetails":[{"keyword":"required","dataPath":"","schemaPath":"#/required","params":{"missingProperty":"bcp"},"message":"should have required property 'bcp'","schema":{"bcp":{"description":"The ID of the project","$ref":"https://docs.beracode.com/schemas/defs.json#/definitions/objectId"},"authorization":{"description":"The user's token","$ref":"https://docs.beracode.com/schemas/defs.json#/definitions/token"}},"parentSchema":{"id":"https://docs.beracode.com/schemas/default_header_required.json","title":"Default required header","description":"Schema that validates the requie data passed in the header","type":"object","properties":{"bcp":{"description":"The ID of the project","$ref":"https://docs.beracode.com/schemas/defs.json#/definitions/objectId"},"authorization":{"description":"The user's token","$ref":"https://docs.beracode.com/schemas/defs.json#/definitions/token"}},"required":["bcp"]},"data":{"host":"artigos.projetojovemempresario.com.br","esi":"true","connection":"close","x-forwarded-proto":"https","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","x-forwarded-for":"54.81.196.35, 127.0.0.1","hasbranch":"production","restarts":"0","originalend":"produtividade-planejamento-estrategico","accept-encoding":"gzip","x-varnish":"104858358","originalhost":"artigos.projetojovemempresario.com.br","originalurl":"API/merge/project_data","originalpageslug":"API","one":"two"}}],"timeStamp":"2018-08-22T01:47:01.629Z","stack":"BeraError: data should have required property 'bcp'\n at Object.ValidateSchema (/opt/apps/BERA_API/modules/shared/schema_helper.js:126:24)\n at ValidateSchema (/opt/apps/BERA_API/config/router.js:471:25)\n at ValidateReceivedPayload (/opt/apps/BERA_API/config/router.js:421:31)\n at ValidateReceivedData (/opt/apps/BERA_API/config/router.js:143:7)\n at /opt/apps/BERA_API/node_modules/async/dist/async.js:3880:24\n at replenish (/opt/apps/BERA_API/node_modules/async/dist/async.js:1011:17)\n at /opt/apps/BERA_API/node_modules/async/dist/async.js:1016:9\n at eachOfLimit (/opt/apps/BERA_API/node_modules/async/dist/async.js:1041:24)\n at /opt/apps/BERA_API/node_modules/async/dist/async.js:1046:16\n at _parallel (/opt/apps/BERA_API/node_modules/async/dist/async.js:3879:5)\n at Object.series (/opt/apps/BERA_API/node_modules/async/dist/async.js:4735:5)\n at ValidateReceivedRequest (/opt/apps/BERA_API/config/router.js:140:9)\n at ValidateRequest (/opt/apps/BERA_API/config/router.js:65:7)\n at /opt/apps/BERA_API/node_modules/async/dist/async.js:3880:24\n at replenish (/opt/apps/BERA_API/node_modules/async/dist/async.js:1011:17)\n at /opt/apps/BERA_API/node_modules/async/dist/async.js:1016:9\n at eachOfLimit (/opt/apps/BERA_API/node_modules/async/dist/async.js:1041:24)\n at /opt/apps/BERA_API/node_modules/async/dist/async.js:1046:16\n at _parallel (/opt/apps/BERA_API/node_modules/async/dist/async.js:3879:5)\n at Object.series (/opt/apps/BERA_API/node_modules/async/dist/async.js:4735:5)\n at Route (/opt/apps/BERA_API/config/router.js:24:9)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/route.js:137:13)\n at Route.dispatch (/opt/apps/BERA_API/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:281:22\n at param (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:354:14)\n at param (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:365:14)\n at param (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:365:14)\n at param (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:365:14)\n at param (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:365:14)\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:410:3)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:635:15\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:260:14)\n at Function.handle (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:174:3)\n at router (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:47:12)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:317:13)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:335:12)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at Function.handle (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:174:3)\n at router (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:47:12)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:317:13)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:335:12)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at /opt/apps/BERA_API/node_modules/i18next-express-middleware/lib/index.js:80:7\n at I18n.loadLanguages (/opt/apps/BERA_API/node_modules/i18next/dist/commonjs/i18next.js:372:33)\n at i18nextMiddleware (/opt/apps/BERA_API/node_modules/i18next-express-middleware/lib/index.js:79:13)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:317:13)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:335:12)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at GetIfExists (/opt/apps/BERA_API/middlewares/project_middleware.js:78:14)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:317:13)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:335:12)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at expressInstance.use (/opt/apps/BERA_API/config/express.js:134:12)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:317:13)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:335:12)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at urlencodedParser (/opt/apps/BERA_API/node_modules/body-parser/lib/types/urlencoded.js:91:7)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:317:13)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:335:12)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at jsonParser (/opt/apps/BERA_API/node_modules/body-parser/lib/types/json.js:110:7)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:317:13)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:335:12)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at expressInit (/opt/apps/BERA_API/node_modules/express/lib/middleware/init.js:40:5)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:317:13)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:335:12)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at query (/opt/apps/BERA_API/node_modules/express/lib/middleware/query.js:45:5)\n at Layer.handle [as handle_request] (/opt/apps/BERA_API/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:317:13)\n at /opt/apps/BERA_API/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:335:12)\n at next (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:275:10)\n at Function.handle (/opt/apps/BERA_API/node_modules/express/lib/router/index.js:174:3)\n at Function.handle (/opt/apps/BERA_API/node_modules/express/lib/application.js:174:10)\n at Server.app (/opt/apps/BERA_API/node_modules/express/lib/express.js:39:9)\n at emitTwo (events.js:126:13)\n at Server.emit (events.js:214:7)\n at parserOnIncoming (_http_server.js:619:12)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:112:17)\n"},"request":{"url":"/merge/project_data","method":"GET","headers":{"host":"artigos.projetojovemempresario.com.br","esi":"true","connection":"close","x-forwarded-proto":"https","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","x-forwarded-for":"54.81.196.35, 127.0.0.1","hasbranch":"production","restarts":"0","originalend":"produtividade-planejamento-estrategico","accept-encoding":"gzip","x-varnish":"104858358","originalhost":"artigos.projetojovemempresario.com.br","originalurl":"API/merge/project_data","originalpageslug":"API","one":"two"},"query":{},"body":{},"params":{"module":"merge","functionName":"project_data"}}}