-
Notifications
You must be signed in to change notification settings - Fork 54
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
Error: Producer does not exist #88
Comments
Can you please create a repository which can reproduce this issue? |
Hey @ssut thanks for the reply. Unfortunately I think it would take a few hours to get a mock repo setup pointing at a local SQS, and part of me thinks that time would be better spent troubleshooting within the real application's setup (as I think that is where the problem lies somehow) I will keep this up to date with any findings. I have an inclination that it may be related to having the At a high level however, does my producer and module setup look reasonable and expected to you? |
Your setup looks just fine to me. However, I'm curios about the mention of "two separate Nest apps" part though - do you mean you're running 2 nest instances in the same context(runtime)? If so, can you please inject import { ModulesContainer } from '@nestjs/core';
// ...
constructor(private modulesContainer: ModulesContainer) {}
// ...
processMessage: MessageHandler = async (params: MessageParams) => {
console.log('applicationId =', this.modulesContainer.applicationId);
} if the IDs are the same in both apps, they're probably conflicting by some reason. |
From my understanding, these would be running in totally different runtimes. As an example we have our main application that has Separately for our native Kafka consumers we have something like That being said, we have use cases for I will mess around with this built-in |
Have been debugging for a number of hours and am out of ideas. I am not sure if this is a bug or if something is being missed, but if it's the latter hopefully writing it out here will help.
Running into an unexpected
Producer does not exist
error when attempting to put a message onto an SQS queue.With some parts omitted, here is the producer in question
and here is the module where
nestjs-sqs
is configured:This
SqsQueuesModule
is part of theimports: []
array within the base module for a Nest app.Note that this same app both produces to and consumes from the queue, hence having a config object for both.
The only slightly odd part of our setup is that we have a separate
SqsModule.registerAsync
call within a different Nest app that does not include this producer. I wouldn't think that should have any effect on theSqsModule
within this separate app though.Is something off here with my configuration? I've looked over it a silly number of times at this point but haven't seen anything out of the ordinary
Thanks for your help
The text was updated successfully, but these errors were encountered: