{"action":"created","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-management/issues/587","repository_url":"https://api.github.com/repos/rabbitmq/rabbitmq-management","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-management/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-management/issues/587/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-management/issues/587/events","html_url":"https://github.com/rabbitmq/rabbitmq-management/issues/587","id":338126354,"node_id":"MDU6SXNzdWUzMzgxMjYzNTQ=","number":587,"title":"Incorrect Messages count in RabbitMQ UI for the Queues","user":{"login":"pankaj405586","id":30307004,"node_id":"MDQ6VXNlcjMwMzA3MDA0","avatar_url":"https://avatars2.githubusercontent.com/u/30307004?v=4","gravatar_id":"","url":"https://api.github.com/users/pankaj405586","html_url":"https://github.com/pankaj405586","followers_url":"https://api.github.com/users/pankaj405586/followers","following_url":"https://api.github.com/users/pankaj405586/following{/other_user}","gists_url":"https://api.github.com/users/pankaj405586/gists{/gist_id}","starred_url":"https://api.github.com/users/pankaj405586/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pankaj405586/subscriptions","organizations_url":"https://api.github.com/users/pankaj405586/orgs","repos_url":"https://api.github.com/users/pankaj405586/repos","events_url":"https://api.github.com/users/pankaj405586/events{/privacy}","received_events_url":"https://api.github.com/users/pankaj405586/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-04T04:27:51Z","updated_at":"2018-07-04T08:45:20Z","closed_at":"2018-07-04T08:41:51Z","author_association":"NONE","body":"Issue: in rabbitmq UI no of message count is 100 but same when i trying to get through curl command it's showing zero.\r\ni also tried to fetch message from rabbitmq gui by get message but it's saying queues is empty.\r\n\r\nplease help why this is happening ?\r\n\r\nRMQ version: 3.6.12\r\nNo of message in ready state: 602 (as per UI)\r\nNo of messages as per curl: 602\r\n\r\ncurl -i -u devops:******* -X GET http://******:15672/api/queues/growth/domain_q_prod_TransformerHMSEvent |sed 's/,/\\n/g' | grep '\"messages\"' | sed 's/\"messages\"://g'\r\n\r\ntrying to fetch message using curl:\r\n\r\ncurl -i -u devops:****** -H \"content-type:application/json\" -X POST http://******:15672/api/queues/growth/domain_q_prod_TransformerHMSEvent/get -d'{\"count\":100,\"requeue\":true,\"encoding\":\"auto\",\"truncate\":50000}'\r\n\r\nresponse: \r\nHTTP/1.1 200 OK\r\nserver: Cowboy\r\ndate: Wed, 04 Jul 2018 04:26:08 GMT\r\ncontent-length: 2\r\ncontent-type: application/json\r\nvary: accept, accept-encoding, origin\r\nCache-Control: no-cache\r\nContent-Type: application/json\r\n[]\r\n\r\n\r\n\r\n\r\n![screen shot 2018-07-04 at 09 55 40](https://user-images.githubusercontent.com/30307004/42256773-b27e72b4-7f70-11e8-94d3-edef509b5f58.png)\r\n![screen shot 2018-07-04 at 09 55 54](https://user-images.githubusercontent.com/30307004/42256774-b2a98ddc-7f70-11e8-9369-1e00a8f78452.png)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-management/issues/comments/402409353","html_url":"https://github.com/rabbitmq/rabbitmq-management/issues/587#issuecomment-402409353","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-management/issues/587","id":402409353,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjQwOTM1Mw==","user":{"login":"michaelklishin","id":1090,"node_id":"MDQ6VXNlcjEwOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1090?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T08:45:20Z","updated_at":"2018-07-04T08:45:20Z","author_association":"MEMBER","body":"Management UI uses the same HTTP API but the page you are looking at and the what `basic.get` returns represent different data. I'm not sure where the idea of using `basic.get` with requeueing as a way to determine how many messages there are in a queue comes from. There are [better ways](http://www.rabbitmq.com/api-guide.html#passive-declaration), including in the HTTP API alone."}}
{"actor":{"display_login":"michaelklishin"}}