{"action":"created","issue":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/884","labels_url":"https://api.github.com/repos/tgalal/yowsup/issues/884/labels{/name}","comments_url":"https://api.github.com/repos/tgalal/yowsup/issues/884/comments","events_url":"https://api.github.com/repos/tgalal/yowsup/issues/884/events","html_url":"https://github.com/tgalal/yowsup/issues/884","id":89765855,"number":884,"title":"Message not getting received on Whatsapp when I run yowsup-cli demos","user":{"login":"ignitedpear","id":11385563,"avatar_url":"https://avatars.githubusercontent.com/u/11385563?v=3","gravatar_id":"","url":"https://api.github.com/users/ignitedpear","html_url":"https://github.com/ignitedpear","followers_url":"https://api.github.com/users/ignitedpear/followers","following_url":"https://api.github.com/users/ignitedpear/following{/other_user}","gists_url":"https://api.github.com/users/ignitedpear/gists{/gist_id}","starred_url":"https://api.github.com/users/ignitedpear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignitedpear/subscriptions","organizations_url":"https://api.github.com/users/ignitedpear/orgs","repos_url":"https://api.github.com/users/ignitedpear/repos","events_url":"https://api.github.com/users/ignitedpear/events{/privacy}","received_events_url":"https://api.github.com/users/ignitedpear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-20T12:54:23Z","updated_at":"2015-06-20T14:11:19Z","closed_at":null,"body":"When I run the following command for 10 times in a loop\r\nyowsup-cli demos -d -c CONFIG -s \"$number\" \"$message\" >> logs.txt 2>&1\r\n\r\nI get \"Message sent\" for all the 10 messages. But my Whatsapp phone does not receive half the messages:\r\n\r\n I sent:\r\n\"Random 1\", \"Random 2\", ... , \"Random 10\"\r\n\r\nWhat I received on my phone:\r\nRandom 1, 2, 4, 6, 8, 10\r\n\r\nWhy am I not able to get all the messages?\r\n\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/22559851-message-not-getting-received-on-whatsapp-when-i-run-yowsup-cli-demos?utm_campaign=plugin&utm_content=tracker%2F298781&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F298781&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/comments/113771244","html_url":"https://github.com/tgalal/yowsup/issues/884#issuecomment-113771244","issue_url":"https://api.github.com/repos/tgalal/yowsup/issues/884","id":113771244,"user":{"login":"jlguardi","id":10707343,"avatar_url":"https://avatars.githubusercontent.com/u/10707343?v=3","gravatar_id":"","url":"https://api.github.com/users/jlguardi","html_url":"https://github.com/jlguardi","followers_url":"https://api.github.com/users/jlguardi/followers","following_url":"https://api.github.com/users/jlguardi/following{/other_user}","gists_url":"https://api.github.com/users/jlguardi/gists{/gist_id}","starred_url":"https://api.github.com/users/jlguardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlguardi/subscriptions","organizations_url":"https://api.github.com/users/jlguardi/orgs","repos_url":"https://api.github.com/users/jlguardi/repos","events_url":"https://api.github.com/users/jlguardi/events{/privacy}","received_events_url":"https://api.github.com/users/jlguardi/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T14:11:19Z","updated_at":"2015-06-20T14:11:19Z","body":"The problem is that you are calling send method in the same second but by two different executions. It means. You call the program at 1434802865 and the message is sent and you leave the app. Then, in the same second, you call again the app and the message goes out with the same id. So whatsapp server rejects the message. \r\nIt isn't a race condition of the app but your script. Add a sleep of a second and it will work. "}}