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.

Duplicate messages after f78837cbc5f468e02a49942211edbc71f6e9f36f

See original GitHub issue

https://github.com/conversejs/converse-integration-tests/blob/master/test.py#L132 instantly reports failures since f78837cbc5f468e02a49942211edbc71f6e9f36f

[10:10:52] XMPP connected
[10:10:57] Logged into Converse
[10:10:57] Testing 1 messages
[10:10:02] Testing 10 online messages with disconnect delay 1..
Traceback (most recent call last):
  File "./test.py", line 368, in <module>
    test.test_online(start_count + i)
  File "./test.py", line 190, in test_online
    self.checkMessages(private_messages, muc_messages)
  File "./test.py", line 220, in checkMessages
    raise Exception("%s duplicate private messages received" %(self.check_duplicates(private_messages)))
Exception: 10 duplicate private messages received

end

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
laszlovlcommented, Feb 5, 2020

I suspect the reason why your test now fails is because you’re testing for duplicate stanza-id values but you’re not sending full MAM messages but simply normal messages. Is that so?

I have no clue (yet) what’s even going on under the hood, converse-integration-tests just uses a reasonably modern XMPP client (SleekXMPP) and a modern server configuration (Ejabberd) with all their defaults.

0reactions
laszlovlcommented, Feb 7, 2020

Yes, seems fixed, great!

[14:02:36] XMPP connected
[14:02:42] Logged into Converse
[14:02:42] Testing 1 messages
[14:02:47] Testing 10 online messages with disconnect delay 2..
[14:02:54] Testing 10 offline messages with disconnect delay 5..
[14:02:03] Testing 10 online messages with reload inbetween
[14:02:07] Testing 11 online messages with disconnect delay 0..
[14:02:12] Testing 11 offline messages with disconnect delay 4..
[14:02:22] Testing 11 online messages with reload inbetween
[14:02:25] Testing 12 online messages with disconnect delay 0..
[14:02:31] Testing 12 offline messages with disconnect delay 3..
[14:02:39] Testing 12 online messages with reload inbetween
[14:02:43] Testing 13 online messages with disconnect delay 1..
[14:02:51] Testing 13 offline messages with disconnect delay 5..
[14:02:01] Testing 13 online messages with reload inbetween
[14:02:06] Testing 14 online messages with disconnect delay 5..
[14:02:16] Testing 14 offline messages with disconnect delay 1..
[14:02:22] Testing 14 online messages with reload inbetween
[14:02:27] Testing 15 online messages with disconnect delay 4..
[14:02:38] Testing 15 offline messages with disconnect delay 4..
[14:02:48] Testing 15 online messages with reload inbetween
[14:02:54] Testing 16 online messages with disconnect delay 0..
[14:02:01] Testing 16 offline messages with disconnect delay 1..
[14:02:08] Testing 16 online messages with reload inbetween
[14:02:14] Testing 17 online messages with disconnect delay 4..
[14:02:25] Testing 17 offline messages with disconnect delay 5..
[14:02:37] Testing 17 online messages with reload inbetween
[14:02:43] Testing 18 online messages with disconnect delay 2..
[14:02:53] Testing 18 offline messages with disconnect delay 3..
[14:02:03] Testing 18 online messages with reload inbetween
[14:02:10] Testing 19 online messages with disconnect delay 4..
[14:02:21] Testing 19 offline messages with disconnect delay 1..
[14:02:29] Testing 19 online messages with reload inbetween
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Stop Sending Duplicate Text Messages on Android
A variety of problems can cause duplicate messages on Android and this article will teach you how to fix that from happening.
Read more >
Why did the person I sent a message to get duplicate ...
Sometimes duplicate messages can also be produced by the destination carrier when the recipient is roaming. Duplicate messages should be a rare occurrence,...
Read more >
Why Is My Messenger Sending Duplicate Messages? - ITGeared
When using Messenger, it can happen that every time you send a message, it gets sent in duplicates. For SMS, this can mean...
Read more >
6 Ways to Solve Receiving Duplicate Text Messages Samsung
Receiving duplicate text messages Samsung? No worries, we will walk you through this article and help you find right way to fix the...
Read more >
Android sending double or duplicate text messages? You're ...
To force close the messages app, simply go to the apps list in the Settings menu and tap on the messages app, then...
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