8000 Queue.onMessage RPC promise returned error: mapper_parsing_exception module=amqp-ts · Issue #53 · abreits/amqp-ts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Queue.onMessage RPC promise returned error: mapper_parsing_exception module=amqp-ts #53

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

Open
TanyaDolgopolova opened this issue Jul 31, 2020 · 0 comments

Comments

@TanyaDolgopolova
Copy link

I try to send a message to the queue, after that I see this error.

Queue.onMessage RPC promise returned error: mapper_parsing_exception module=amqp-ts

I cannot understand what I am doing wrong. This is my worker code:

const exchange = connection.declareExchange(process.env.OBJECT_CHILD_QUEUE);
  const queue = connection.declareQueue(process.env.OBJECT_CHILD_QUEUE, {
    prefetch: 1,
  });
  queue.bind(exchange);
  queue.activateConsumer(
    async (message) => {
      const messageID = message.getContent();
      await service.subscribe(
        messageID,
        (retry: boolean) => {
          if (retry) {
            message.nack();
          } else {
            message.ack();
          }
        }
      );
    },
    { noAck: false, manualAck: true }
  );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0