So I have the following configured in my nest.js graphql applicaiton, which seems to be working;
@Module({
imports: [
ThrottlerModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (config: ConfigService) => ({
ttl: config.get('THROTTLE_TTL'),
limit: config.get('THROTTLE_LIMIT'),
}),
}),
],
providers: [
{
provide: APP_GUARD,
useClass: ThrottlerGuard,
},
],
})
export class AppModule {}
but when I try to load test against my local server, the dropped requests all raise the following error
[Nest] 3177 - 2022-09-18T16:25:36.188Z ERROR [ExceptionsHandler] Cannot read property 'ip' of undefined
TypeError: Cannot read property 'ip' of undefined
Why is the request handler not able to capture IP address? Is it b/c its going through one localhost to another?