{"action":"created","issue":{"url":"https://api.github.com/repos/adshares/ads/issues/122","repository_url":"https://api.github.com/repos/adshares/ads","labels_url":"https://api.github.com/repos/adshares/ads/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/adshares/ads/issues/122/comments","events_url":"https://api.github.com/repos/adshares/ads/issues/122/events","html_url":"https://github.com/adshares/ads/issues/122","id":340713787,"node_id":"MDU6SXNzdWUzNDA3MTM3ODc=","number":122,"title":"get_blocks returns empty response occasionally","user":{"login":"PawelPodkalicki","id":38037054,"node_id":"MDQ6VXNlcjM4MDM3MDU0","avatar_url":"https://avatars2.githubusercontent.com/u/38037054?v=4","gravatar_id":"","url":"https://api.github.com/users/PawelPodkalicki","html_url":"https://github.com/PawelPodkalicki","followers_url":"https://api.github.com/users/PawelPodkalicki/followers","following_url":"https://api.github.com/users/PawelPodkalicki/following{/other_user}","gists_url":"https://api.github.com/users/PawelPodkalicki/gists{/gist_id}","starred_url":"https://api.github.com/users/PawelPodkalicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PawelPodkalicki/subscriptions","organizations_url":"https://api.github.com/users/PawelPodkalicki/orgs","repos_url":"https://api.github.com/users/PawelPodkalicki/repos","events_url":"https://api.github.com/users/PawelPodkalicki/events{/privacy}","received_events_url":"https://api.github.com/users/PawelPodkalicki/received_events","type":"User","site_admin":false},"labels":[{"id":954987485,"node_id":"MDU6TGFiZWw5NTQ5ODc0ODU=","url":"https://api.github.com/repos/adshares/ads/labels/Bug","name":"Bug","color":"F44336","default":false},{"id":954987487,"node_id":"MDU6TGFiZWw5NTQ5ODc0ODc=","url":"https://api.github.com/repos/adshares/ads/labels/In%20Progress","name":"In Progress","color":"A9E2AD","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-12T16:37:24Z","updated_at":"2018-07-13T14:31:13Z","closed_at":null,"author_association":"NONE","body":"Function `get_blocks` returns empty response occasionally. \r\n\r\nFollowing script does 1000 `get_blocks` requests on docker one after another without delay.\r\n```\r\n#!/bin/bash\r\n\r\ni=0\r\nemptyCount=0\r\nwhile [ $i -lt 1000 ]; do\r\n  response=\"$(echo '{\"run\":\"get_blocks\"}' | docker exec -i adshares_ads_1 ads -n0 -w /ads-data/tmp -P9001 -Hesc.dock -A0001-00000000-9B6F -sBB3425F914CA9F661CA6F3B908E07092B5AFB7F2FDAE2E94EDE12C83207CA743 2> /dev/null)\"\r\n  if [ -z \"${response}\" ]; then\r\n    emptyCount=$(($emptyCount+1))\r\n    echo \"EMPTY RESPONSE $emptyCount\"\r\n#    exit 255\r\n  else\r\n    echo \"$i:${response}\"\r\n  fi\r\n  i=$(($i+1))\r\ndone\r\n```\r\nIt seems that `get_blocks` has empty reponse in periods equal to block time (32 s)."},"comment":{"url":"https://api.github.com/repos/adshares/ads/issues/comments/404850632","html_url":"https://github.com/adshares/ads/issues/122#issuecomment-404850632","issue_url":"https://api.github.com/repos/adshares/ads/issues/122","id":404850632,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDg1MDYzMg==","user":{"login":"PawelPodkalicki","id":38037054,"node_id":"MDQ6VXNlcjM4MDM3MDU0","avatar_url":"https://avatars2.githubusercontent.com/u/38037054?v=4","gravatar_id":"","url":"https://api.github.com/users/PawelPodkalicki","html_url":"https://github.com/PawelPodkalicki","followers_url":"https://api.github.com/users/PawelPodkalicki/followers","following_url":"https://api.github.com/users/PawelPodkalicki/following{/other_user}","gists_url":"https://api.github.com/users/PawelPodkalicki/gists{/gist_id}","starred_url":"https://api.github.com/users/PawelPodkalicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PawelPodkalicki/subscriptions","organizations_url":"https://api.github.com/users/PawelPodkalicki/orgs","repos_url":"https://api.github.com/users/PawelPodkalicki/repos","events_url":"https://api.github.com/users/PawelPodkalicki/events{/privacy}","received_events_url":"https://api.github.com/users/PawelPodkalicki/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T14:31:13Z","updated_at":"2018-07-13T14:31:13Z","author_association":"NONE","body":"Reopened due to `Signature is unavailable` error.\r\n\r\n```\r\n16:29:58.380 [main] DEBUG n.a.ads.qa.util.FunctionCaller - request: echo '{\"run\":\"get_blocks\"}' | docker exec -i adshares_ads_1 ads -n0 -w /ads-data/tmp -P9001 -Hesc.dock -A0001-00000000-9B6F -sBB3425F914CA9F661CA6F3B908E07092B5AFB7F2FDAE2E94EDE12C83207CA743\r\n16:29:58.573 [main] DEBUG n.a.ads.qa.util.FunctionCaller - resp: {\"error\":\"Signature is unavailable\"}\r\n```"}}
{"actor":{"display_login":"PawelPodkalicki"}}