-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I18nContext undefined for RabbitMq messages #581
Comments
Hello, On RabbitMQ consumers, HTTP middlewares aren't used, so we only rely on So maybe you have additional interceptors on your RabbitMQ consumers ? Or maybe you have a different setup, can you tell a bit more about it ?
|
Describe the bug
I'm using microservices with RabbitMq and I'm trying to pass language over message in message header.
I've made customer resolver and it does actually resolve the right language from header and returns it but in service i18nContext is always undefined.
I've also put
{ inheritAppConfig: true }
in main.ts for RabbitMqI've also noticed that in controllers i18nContext is ok but in services is undefined...
Reproduction
2 nestjs hybrid applications with rabbitmq
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: