Skip to content
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

Requires id for FIFO queues #23

Closed
DiegoRBaquero opened this issue Oct 25, 2017 · 0 comments
Closed

Requires id for FIFO queues #23

DiegoRBaquero opened this issue Oct 25, 2017 · 0 comments

Comments

@DiegoRBaquero
Copy link
Contributor

Hello!

I'm trying to send a message to a FIFO queues, which require de groupId and deduplicationId, but the package is requiring me to enter an ID which is never used.

My code:

const producer = Producer.create({
  queueUrl: 'https://sqs.us-east-1.amazonaws.com/xxxxxxxx/yyyyyyyyy.fifo',
  region: 'us-east-1'
})

const content = JSON.stringify({zzzzzzzz: 1})

const message = {
  body: content,
  id: 'woot',
  groupId: 'group1234',
  deduplicationId: shajs('sha256').update(content).digest('hex')
}

producer.send(message, err => {
  if (err) console.log(err)
})

Error: Error: Object messages must have 'id' and 'body' props
at entryFromObject (/lib/producer.js:47:11)

niklasR added a commit that referenced this issue Oct 31, 2017
fix: don't require id for FIFO messages (Fixes #23)
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