Closed waynehong789 closed 5 years ago
Please, provide a minimal repository which reproduces your issue.
Unfortunately, I cannot provide a repository. I am using RabbitMQ Management to publish a queue data and expecting Nestjs back end listening on the event pattern from RMQ module. I solved the problem by passing payload data object with "pattern" and "data" keys. Because there is a method: " isExternal" in "incoming-request.deserializer.js". It can return the "value", once it has "pattern" or "data" keys. But I still thinking it's not a good practice at line 64 of "server-rmq.js" : const packet = this.deserializer.deserialize(rawMessage); It only provides one parameter, but not two as expected at line 5 of "incoming-request.deserializer.js" : deserialize(value, options).
Anyway, thanks for reply @kamilmysliwiec.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Bug Report
Current behavior
Returning undefined "data" & "pattern", after deserialized incoming message at "server-rmq.js".
Input Code
At line 64 of "server-rmq.js" : const packet = this.deserializer.deserialize(rawMessage);
But at line 5 of "incoming-request.deserializer.js" : deserialize(value, options) { return this.isExternal(value) ? this.mapToSchema(value, options) : value; }
Looks like it expected two parameters, but only one provided from line 64 of "server-rmq.js".
Expected behavior
It should return the data with RMQ queue payload.
Possible Solution
Pass the options from line 64 of "server-rmq.js"
Environment
For Tooling issues:
node --version
-->Others: