Hi! We see the error of reading context but we don't even have such code, it's somewhere inside NestJs's packages and I have no idea how to debug it and find what can cause it. I'd appreciate any help.
The error track is the next:
at error (/usr/src/app/node_modules/@nestjs/common/services/logger.service.js:41:31)
at descriptor.value (/usr/src/app/node_modules/@nestjs/common/services/logger.service.js:165:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 5)
at async OnboardingService._OnboardingService_finishOnboarding (/usr/src/app/dist/onboarding/onboarding.service.js:198:5)```
We're using custom logger that we connect like this (file main.ts)
```ts
app.use(
requestLogger({
customProps: {...}
}),
)```
then we create an instance in a service in constructor like this
```ts
@Injectable()
export class OnboardingService {
private logger = new Logger(OnboardingService.name)
// and use it in one of class's methods like this
...
this.logger.log(`[finishOnboarding]`, { uid, onboardingTopics }) // here we see unhandled error sometimes (really rare)
...
}```