You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@xavierchow The following code will throw Exception has occurred: TypeError: Converting circular structure to JSON when the input msg is not a valid json string, as it was trying to stringify the whole Message object.
Suggest to change the following line to set value.body to msg instead of value itself to avoid potential issues. For example, if the current message in nsq is not a valid json string, it will prevent this message from being processed by any message handler and will eventually cause timeout on this message.
@xavierchow The following code will throw
Exception has occurred: TypeError: Converting circular structure to JSON
when the input msg is not a valid json string, as it was trying tostringify
the wholeMessage
object.nestjs-nsq-transporter/src/responder/inbound-message-deserializer.ts
Line 17 in 1edbfd8
Suggest to change the following line to set
value.body
tomsg
instead ofvalue
itself to avoid potential issues. For example, if the current message in nsq is not a valid json string, it will prevent this message from being processed by any message handler and will eventually cause timeout on this message.nestjs-nsq-transporter/src/responder/inbound-message-deserializer.ts
Line 12 in 1edbfd8
An easy way to re-create this issue is by sending the following message to nsq through nsqd pub api:
The text was updated successfully, but these errors were encountered: