question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: message received with unknown reply_to after every message

See original GitHub issue

Hello,

I noticed that I’m seeing this error every time I send a message. It’s happening because, after sending a message, my app sees two responses. Upon sending a message, e.g.:

{ text: 'Foo',
  channel: 'G1Q9TF94J',
  type: 'message',
  id: 1 }

It first sees the message it just posted (the “echo”):

{ reply_to: 1,
  type: 'message',
  channel: 'G1Q9TF94J',
  user: 'U1Q2DRD6D',
  text: 'Foo',
  ts: '1468520040.000085' }

It later receives an ack for the same message:

{ ok: true,
  reply_to: 1,
  ts: '1468520064.000086',
  text: 'Foo' }

The first incoming message (the echo) causes the message state to be cleared inside RTMClient.prototype._handleMsgResponse; when the second message arrives (the ack), the state has been cleared so I get the error message received with unknown reply_to.

To put this in more concrete terms, after sending a message, I’m getting both a messageAck and a mostRecentMsgReply (echo). The only way I can think of solving this is to store a separate list of valid outgoing replyTo IDs and, when an ack or echo comes back for one of these, for which the handler has already been called, we just drop it silently.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
aoberoicommented, Oct 3, 2017

@chenfanggm at this point i’m open to accepting PRs that can resolve the issue and/or implement tests that verify the correct behavior. we haven’t begun to work on a fix yet, and i personally consider this a medium priority issue because its an annoyance but hasn’t caused complete failure in the wild.

1reaction
adamk33n3rcommented, Feb 28, 2017

As mentioned in https://github.com/slackapi/node-slack-sdk/issues/300#issuecomment-266804306 you can only use channel/group/DM id’s. You cannot use channel names, user names, or user id’s.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reply to badly processed email or unknown email sender
// used when an unknown user send a mail, we send a reply back informing that the email has not been processed. This...
Read more >
Receiving new error message in Outlook since adding a new ...
Receiving new error message in Outlook since adding a new member to our team. "Your message wasn't delivered because the recipient's email ...
Read more >
Apache Camel: Reply received for unknown correlationID
I think the error message you are getting means that Camel has expired the request because the TTL has been exceeded. But then...
Read more >
Common inbox reply errors - Agorapulse - Help Center
You won't be able to reply to such a message anymore. ... Received Facebook error response of type null: An unknown error occurred...
Read more >
Consumer Acknowledgements and Publisher Confirms
Note that a consumer can receive a message that was previously delivered to another consumer. Client Errors: Double Acking and Unknown Tags. Should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found