Comments (5)
Thanks your :)
from nestjs-rmq.
@vnkitaev, thanks for report, I'll check with latest version of NestJS.
from nestjs-rmq.
@vnkitaev, tested with:
"dependencies": {
"@nestjs/common": "^5.3.6",
"@nestjs/core": "^5.3.6",
"@nestjs/microservices": "^5.3.6",
"@nestjs/testing": "^5.0.0",
"@nestjs/websockets": "^5.0.0",
"nestjs-rmq": "0.1.1"
},
No error. Everything seams fine.
Could you provide actual code, that causes this error?
from nestjs-rmq.
await NestFactory.createMicroservice(ApplicationModule, {
strategy: new ServerRMQ({
urls: ['amqp://guest:guest@localhost:5672'],
queue: 'test',
queueOptions: { durable: false }
})
});
await this.app.listen(3000);
ApplicationModule is empty.
If the callback is optional, maybe add check is callback a function?
nestjs-rmq/lib/server/server.ts
Line 41 in 8b576be
from nestjs-rmq.
@vnkitaev, I updated package to 0.1.2
and added additional check if callback is a function. Now your error must be gone. But NestJS insists, that callback must be a function. Even if I set it to number, listen()
still warn about error:
When you start microservice you don't specify any port: https://docs.nestjs.com/microservices/basics
import { NestFactory } from '@nestjs/core';
import { Transport } from '@nestjs/microservices';
import { ApplicationModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.createMicroservice(ApplicationModule, {
transport: Transport.TCP,
});
app.listen(() => console.log('Microservice is listening'));
}
bootstrap();
But additional check will be ok) Thanks for submitting an issue 👍
from nestjs-rmq.
Related Issues (20)
- Support for amqps protocol HOT 4
- Listen a queue messages, and not queue topics. Its Possible? HOT 2
- Determine serviceName on @RMQRoute HOT 1
- Feature Request: Exclusive Queue HOT 2
- Feature Request: Multi exchange and multi queue binding HOT 2
- Enhancement: Disable logging for messages HOT 3
- How to handle ERROR_NO_ROUTE? HOT 1
- RabbitMQ URI HOT 3
- Requested service doesn't have RMQRoute with this path HOT 1
- Nestjs 9 HOT 1
- validation + manual ack/nack
- Assert queue programmatically HOT 1
- Error handling broken for 2.8.0 HOT 3
- Update packages please HOT 1
- library goes bootloop when its connected HOT 1
- Update package please HOT 1
- class-validator dependency vulnerability HOT 1
- How i supposed to catch errors thrown from handlers? HOT 2
- Example issue with configService? HOT 2
- Как публиковать в разные exchange и queue?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs-rmq.