[ editar artigo]

Ler conteúdo completo
Indicados para você
{"captured":true,"status":500,"response":{"error_code":"MONGO_DB_NATIVE","error_id":0,"error_message":"$in needs an array","error_details":{"schema":"articles","pipeline":[{"$match":{"project_id":"56e9af4bb89f1d73465cbd39","status":1,"content_type":{"$ne":"raw"},"url_only":{"$ne":true},"course_id":null,"page_id":"595e8f653e10d90bae17b4c2","tags":{},"_id":{"$ne":"5cc185dcab71a607d4ea1cb1"}}},{"$lookup":{"from":"pages","localField":"page_id","foreignField":"_id","as":"page"}},{"$unwind":"$page"},{"$sort":{"stickied":-1,"publish":-1}},{"$skip":0},{"$limit":2},{"$project":{"hasGroup":{"$eq":["$page.type","sub-blog"]},"_id":1,"user_id":1,"page_id":1,"title":1,"slug":1,"publish":1,"image_cover":1,"content_type":1,"page":{"title":1,"slug":1,"type":1}}}]},"time_stamp":"2020-09-25T06:37:25.241Z","stack":"MongoError: $in needs an array\n at Function.MongoError.create (/opt/apps/BERA_API/node_modules/mongodb-core/lib/error.js:31:11)\n at queryCallback (/opt/apps/BERA_API/node_modules/mongodb-core/lib/cursor.js:212:36)\n at /opt/apps/BERA_API/node_modules/mongodb-core/lib/connection/pool.js:469:18\n at _combinedTickCallback (internal/process/next_tick.js:131:7)\n at process._tickDomainCallback (internal/process/next_tick.js:218:9)\n"},"request":{"url":"/article?page_id=595e8f653e10d90bae17b4c2&related_id=5cc185dcab71a607d4ea1cb1","method":"GET","headers":{"host":"comunidadesebrae.com.br","esi":"true","connection":"upgrade","x-real-ip":"10.252.0.21","content-length":"0","x-forwarded-proto":"http","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","accept-language":"en-US,en;q=0.5","via":"1.1 google, 1.1 google","hasbranch":"production","restarts":"0","originalurl":"sebrae-trends/teste-4","originalpageslug":"sebrae-trends","originalend":"teste-4","redisret":"___projectid___56e9af4bb89f1d73465cbd39___lang___/utils/public/lang/pt-br.json","bcp":"56e9af4bb89f1d73465cbd39","bymiss":"true","lang":"/utils/public/lang/pt-br.json","x-varnish":"842777142, 626361921","x-forwarded-for":"3.230.119.106,10.254.128.121,10.254.128.86, 10.252.0.14, 10.254.128.84,10.254.128.58,10.254.128.87","originalhost":"comunidadesebrae.com.br","avoidbera":"","doesi":"true","epoch":"1601015845","page":"1"},"query":{"page_id":"595e8f653e10d90bae17b4c2","related_id":"5cc185dcab71a607d4ea1cb1","page":1,"commenters":0,"skip":0,"limit":20,"bookmarks":false,"featured":false},"body":{},"params":{}}}