{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/1329","repository_url":"https://api.github.com/repos/ethereum/web3.js","labels_url":"https://api.github.com/repos/ethereum/web3.js/issues/1329/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/web3.js/issues/1329/comments","events_url":"https://api.github.com/repos/ethereum/web3.js/issues/1329/events","html_url":"https://github.com/ethereum/web3.js/issues/1329","id":292087387,"number":1329,"title":"contract.events.Transfer subscription missing events","user":{"login":"wallaceturner","id":2849980,"avatar_url":"https://avatars3.githubusercontent.com/u/2849980?v=4","gravatar_id":"","url":"https://api.github.com/users/wallaceturner","html_url":"https://github.com/wallaceturner","followers_url":"https://api.github.com/users/wallaceturner/followers","following_url":"https://api.github.com/users/wallaceturner/following{/other_user}","gists_url":"https://api.github.com/users/wallaceturner/gists{/gist_id}","starred_url":"https://api.github.com/users/wallaceturner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallaceturner/subscriptions","organizations_url":"https://api.github.com/users/wallaceturner/orgs","repos_url":"https://api.github.com/users/wallaceturner/repos","events_url":"https://api.github.com/users/wallaceturner/events{/privacy}","received_events_url":"https://api.github.com/users/wallaceturner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-27T03:54:26Z","updated_at":"2018-03-28T02:45:37Z","closed_at":null,"author_association":"NONE","body":"I'm subscribing to token transfer events for OMG using the code below\r\n```     \r\n   let contract = new web3.eth.Contract(this.abi, this.omgContractAddress);    \r\n        contract.events.Transfer({}, (err,data) => {\r\n            if(err)\r\n                console.error(err)\r\n            if(data)\r\n                  console.log(`OMG Transfer: block:${data.blockNumber} ${data.returnValues.to} received ${data.returnValues.value/1000000000000000000}. txHash:${data.transactionHash}`);\r\n        });\r\n```\r\n\r\nThis is working and logs to the console however it does not take long for a missing transfer to become evident:\r\n\r\n>OMG Transfer: block:4979638 0x16ae5217Fa04E9827508900C1C2f64f8EF91183b received 29.36. txHash:0xa55bc6b01048b4ec161cc8ca3bd119234a08aaa54e4a4f852d2bfe12885ca566\r\n>OMG Transfer: block:4979643 0xAC949Fd4c2204A19eA7d947c2e2841F3B0433A7f received 21.39896667. txHash:0x130a855aa470dc519d294871fc89349985d6f6465d6ac0a03738c2c1e08d7a05\r\n>**missing from block 4979644 0x0b184d2aa2193ea492a79ed894b2bee14cc7321e95038f54f98f1dab2d60befd from block **\r\n>OMG Transfer: block:4979646 0x06d58A4A17301402b216B5AEa613aEa99E78A5D9 received 5338.28022204. txHash:0x07bf2db1d62e2b60d19253fec9d0fdef2208baa6f6d19e2649b846b3450268b5\r\n\r\nYou can just run it from the latest block to see this behaviour.\r\n\r\nInteresting if you call `getPastEvents` then the missing Transfers from above *are* present"},"comment":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/comments/376742360","html_url":"https://github.com/ethereum/web3.js/issues/1329#issuecomment-376742360","issue_url":"https://api.github.com/repos/ethereum/web3.js/issues/1329","id":376742360,"user":{"login":"dafky2000","id":2653187,"avatar_url":"https://avatars0.githubusercontent.com/u/2653187?v=4","gravatar_id":"","url":"https://api.github.com/users/dafky2000","html_url":"https://github.com/dafky2000","followers_url":"https://api.github.com/users/dafky2000/followers","following_url":"https://api.github.com/users/dafky2000/following{/other_user}","gists_url":"https://api.github.com/users/dafky2000/gists{/gist_id}","starred_url":"https://api.github.com/users/dafky2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dafky2000/subscriptions","organizations_url":"https://api.github.com/users/dafky2000/orgs","repos_url":"https://api.github.com/users/dafky2000/repos","events_url":"https://api.github.com/users/dafky2000/events{/privacy}","received_events_url":"https://api.github.com/users/dafky2000/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T02:45:37Z","updated_at":"2018-03-28T02:45:37Z","author_association":"NONE","body":"I am have this issue as well with a different event. Just seemingly randomly misses events. I too seem to get them after running getPastEvents.\r\n\r\nI use the `on` listeners, no `data`, `changed` or `error` events.\r\n\r\nweb3@1.0.0-beta.33\r\nparity v1.9.4"}}
{"actor":{"display_login":"dafky2000"}}