Hello @dogan.ay
Tks for support.
I replicated the problem, here are the logs:
2025-01-31T11:21:10.631Z | info: [200] GET /editorials - 2205ms
2025-01-31T11:21:10.900Z | info: [200] GET /editorials/count - 2547ms
2025-01-31T11:21:11.864Z | debug: editorials.aggregate: [{"$addFields":{"image@@@_id":"$image._id","image@@@path":"$image.path","image@@@size":"$image.size","image@@@fileName":"$image.fileName","image@@@mimeType":"$image.mimeType","image@@@createdAt":"$image.createdAt","image@@@updatedAt":"$image.updatedAt","image@@@uploadedAt":"$image.uploadedAt","author@@@_id":"$author._id","author@@@cpf":"$author.cpf","author@@@cnpj":"$author.cnpj","author@@@type":"$author.type","author@@@email":"$author.email","author@@@status":"$author.status","author@@@address@@@city":"$author.address.city","author@@@address@@@state":"$author.address.state","author@@@address@@@number":"$author.address.number","author@@@address@@@address":"$author.address.address","author@@@address@@@country":"$author.address.country","author@@@address@@@zipCode":"$author.address.zipCode","author@@@address@@@district":"$author.address.district","author@@@address@@@complement":"$author.address.complement","author@@@profile@@@_id":"$author.profile._id","author@@@profile@@@path":"$author.profile.path","author@@@profile@@@size":"$author.profile.size","author@@@profile@@@fileName":"$author.profile.fileName","author@@@profile@@@mimeType":"$author.profile.mimeType","author@@@profile@@@uploadedAt":"$author.profile.uploadedAt","author@@@contacts@@@phoneNumber":"$author.contacts.phoneNumber","author@@@contacts@@@phonePrincipal":"$author.contacts.phonePrincipal"}},{"$addFields":{"author@@@lastName":"$author.lastName","author@@@createdAt":"$author.createdAt","author@@@firstName":"$author.firstName","author@@@emailTerms":"$author.emailTerms","author@@@externalId":"$author.externalId","author@@@dateOfBirth":"$author.dateOfBirth","author@@@fantasyName":"$author.fantasyName","author@@@acceptedTerms":"$author.acceptedTerms","author@@@corporateName":"$author.corporateName","author@@@emailPromotion":"$author.emailPromotion","author@@@emailTermsPartner":"$author.emailTermsPartner"}},{"$project":{"image._id":0,"image.path":0,"image.size":0,"image.fileName":0,"image.mimeType":0,"image.createdAt":0,"image.updatedAt":0,"image.uploadedAt":0,"author._id":0,"author.cpf":0,"author.cnpj":0,"author.type":0,"author.email":0,"author.status":0,"author.address.city":0,"author.address.state":0,"author.address.number":0,"author.address.address":0,"author.address.country":0,"author.address.zipCode":0,"author.address.district":0,"author.address.complement":0,"author.profile._id":0,"author.profile.path":0,"author.profile.size":0,"author.profile.fileName":0,"author.profile.mimeType":0,"author.profile.uploadedAt":0,"author.contacts.phoneNumber":0,"author.contacts.phonePrincipal":0,"author.lastName":0,"author.createdAt":0,"author.firstName":0,"author.emailTerms":0,"author.externalId":0,"author.dateOfBirth":0,"author.fantasyName":0,"author.acceptedTerms":0,"author.corporateName":0,"author.emailPromotion":0,"author.emailTermsPartner":0}},{"$addFields":{"string__id":{"$toString":"$_id"},"string_image@@@_id":{"$toString":"$image@@@_id"},"string_author@@@_id":{"$toString":"$author@@@_id"},"string_author@@@profile@@@_id":{"$toString":"$author@@@profile@@@_id"}}},{"$match":{"$or":[{"string__id":{}},{"city":{}},{"type":{}},{"state":{}},{"title":{}},{"video":{}},{"status":{}},{"content":{}},{"category":{}},{"description":{}},{"string_image@@@_id":{}},{"image@@@path":{}},{"image@@@fileName":{}},{"image@@@mimeType":{}},{"string_author@@@_id":{}},{"author@@@cpf":{}},{"author@@@type":{}},{"author@@@email":{}},{"author@@@status":{}},{"author@@@address@@@country":{}},{"string_author@@@profile@@@_id":{}},{"author@@@profile@@@path":{}},{"author@@@profile@@@fileName":{}},{"author@@@profile@@@mimeType":{}},{"author@@@contacts@@@phoneNumber":{}},{"author@@@contacts@@@phonePrincipal":{}},{"author@@@lastName":{}},{"author@@@firstName":{}},{"author@@@fantasyName":{}},{"author@@@corporateName":{}}]}},{"$sort":{"createdAt":-1}},{"$skip":30},{"$limit":10},{"$project":{"_id":true,"FOREST_RECORD_DOES_NOT_EXIST":true,"title":true,"author@@@firstName":true,"author@@@lastName":true,"category":true,"status":true,"type":true,"createdAt":true,"updatedAt":true,"publishedAt":true,"views":true}}]
2025-01-31T11:21:12.014Z | debug: editorials.aggregate: [{"$addFields":{"image@@@_id":"$image._id","image@@@path":"$image.path","image@@@size":"$image.size","image@@@fileName":"$image.fileName","image@@@mimeType":"$image.mimeType","image@@@createdAt":"$image.createdAt","image@@@updatedAt":"$image.updatedAt","image@@@uploadedAt":"$image.uploadedAt","author@@@_id":"$author._id","author@@@cpf":"$author.cpf","author@@@cnpj":"$author.cnpj","author@@@type":"$author.type","author@@@email":"$author.email","author@@@status":"$author.status","author@@@address@@@city":"$author.address.city","author@@@address@@@state":"$author.address.state","author@@@address@@@number":"$author.address.number","author@@@address@@@address":"$author.address.address","author@@@address@@@country":"$author.address.country","author@@@address@@@zipCode":"$author.address.zipCode","author@@@address@@@district":"$author.address.district","author@@@address@@@complement":"$author.address.complement","author@@@profile@@@_id":"$author.profile._id","author@@@profile@@@path":"$author.profile.path","author@@@profile@@@size":"$author.profile.size","author@@@profile@@@fileName":"$author.profile.fileName","author@@@profile@@@mimeType":"$author.profile.mimeType","author@@@profile@@@uploadedAt":"$author.profile.uploadedAt","author@@@contacts@@@phoneNumber":"$author.contacts.phoneNumber","author@@@contacts@@@phonePrincipal":"$author.contacts.phonePrincipal"}},{"$addFields":{"author@@@lastName":"$author.lastName","author@@@createdAt":"$author.createdAt","author@@@firstName":"$author.firstName","author@@@emailTerms":"$author.emailTerms","author@@@externalId":"$author.externalId","author@@@dateOfBirth":"$author.dateOfBirth","author@@@fantasyName":"$author.fantasyName","author@@@acceptedTerms":"$author.acceptedTerms","author@@@corporateName":"$author.corporateName","author@@@emailPromotion":"$author.emailPromotion","author@@@emailTermsPartner":"$author.emailTermsPartner"}},{"$project":{"image._id":0,"image.path":0,"image.size":0,"image.fileName":0,"image.mimeType":0,"image.createdAt":0,"image.updatedAt":0,"image.uploadedAt":0,"author._id":0,"author.cpf":0,"author.cnpj":0,"author.type":0,"author.email":0,"author.status":0,"author.address.city":0,"author.address.state":0,"author.address.number":0,"author.address.address":0,"author.address.country":0,"author.address.zipCode":0,"author.address.district":0,"author.address.complement":0,"author.profile._id":0,"author.profile.path":0,"author.profile.size":0,"author.profile.fileName":0,"author.profile.mimeType":0,"author.profile.uploadedAt":0,"author.contacts.phoneNumber":0,"author.contacts.phonePrincipal":0,"author.lastName":0,"author.createdAt":0,"author.firstName":0,"author.emailTerms":0,"author.externalId":0,"author.dateOfBirth":0,"author.fantasyName":0,"author.acceptedTerms":0,"author.corporateName":0,"author.emailPromotion":0,"author.emailTermsPartner":0}},{"$addFields":{"string__id":{"$toString":"$_id"},"string_image@@@_id":{"$toString":"$image@@@_id"},"string_author@@@_id":{"$toString":"$author@@@_id"},"string_author@@@profile@@@_id":{"$toString":"$author@@@profile@@@_id"}}},{"$match":{"$or":[{"string__id":{}},{"city":{}},{"type":{}},{"state":{}},{"title":{}},{"video":{}},{"status":{}},{"content":{}},{"category":{}},{"description":{}},{"string_image@@@_id":{}},{"image@@@path":{}},{"image@@@fileName":{}},{"image@@@mimeType":{}},{"string_author@@@_id":{}},{"author@@@cpf":{}},{"author@@@type":{}},{"author@@@email":{}},{"author@@@status":{}},{"author@@@address@@@country":{}},{"string_author@@@profile@@@_id":{}},{"author@@@profile@@@path":{}},{"author@@@profile@@@fileName":{}},{"author@@@profile@@@mimeType":{}},{"author@@@contacts@@@phoneNumber":{}},{"author@@@contacts@@@phonePrincipal":{}},{"author@@@lastName":{}},{"author@@@firstName":{}},{"author@@@fantasyName":{}},{"author@@@corporateName":{}}]}},{"$group":{"_id":null,"value":{"$sum":1}}},{"$project":{"_id":0,"value":"$value","group":{"$literal":{}}}},{"$sort":{"value":-1}}]
2025-01-31T11:21:12.606Z | error: {"level":"Error","event":"request","status":500,"method":"GET","path":"/editorials","duration":787,"error":{"message":"PlanExecutor error during aggregation :: caused by :: Sort exceeded memory limit of 33554432 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.","stack":"MongoServerError: PlanExecutor error during aggregation :: caused by :: Sort exceeded memory limit of 33554432 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.
at t.sendCommand (/opt/nodejs/index.js:279:67726)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async t.command (/opt/nodejs/index.js:279:68372)
at async t.command (/opt/nodejs/index.js:279:99053)
at async Vte.executeCommand (/opt/nodejs/index.js:275:71976)
at async Vte.execute (/opt/nodejs/index.js:275:104791)
at async tryOperation (/opt/nodejs/index.js:275:69358)
at async executeOperation (/opt/nodejs/index.js:275:67330)
at async t._initialize (/opt/nodejs/index.js:279:229500)
at async t.cursorInit (/opt/nodejs/index.js:279:226219)"}}
✔ Requested 30 logs in the last month
You have received logs from 2025-01-31T11:20:28.728Z to 2025-01-31T11:21:12.606Z