payload: {"action":"closed","number":191,"pull_request":{"url":"https://api.github.com/repos/moov-io/paygate/pulls/191","id":301253167,"node_id":"MDExOlB1bGxSZXF1ZXN0MzAxMjUzMTY3","html_url":"https://github.com/moov-io/paygate/pull/191","diff_url":"https://github.com/moov-io/paygate/pull/191.diff","patch_url":"https://github.com/moov-io/paygate/pull/191.patch","issue_url":"https://api.github.com/repos/moov-io/paygate/issues/191","number":191,"state":"closed","locked":false,"title":"internal/filetransfer: retry file reads on \"internal inconsistency\" errors","user":{"login":"adamdecaf","id":120951,"node_id":"MDQ6VXNlcjEyMDk1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/120951?v=4","gravatar_id":"","url":"https://api.github.com/users/adamdecaf","html_url":"https://github.com/adamdecaf","followers_url":"https://api.github.com/users/adamdecaf/followers","following_url":"https://api.github.com/users/adamdecaf/following{/other_user}","gists_url":"https://api.github.com/users/adamdecaf/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdecaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdecaf/subscriptions","organizations_url":"https://api.github.com/users/adamdecaf/orgs","repos_url":"https://api.github.com/users/adamdecaf/repos","events_url":"https://api.github.com/users/adamdecaf/events{/privacy}","received_events_url":"https://api.github.com/users/adamdecaf/received_events","type":"User","site_admin":false},"body":"This error appears without any real consistency, but a simple retry\r\nseems to work. This might break down at higher concurrency levels, but\r\nfor now let's try this.\r\n\r\nI tried adding/removing ciphers and key exchange protocols in the\r\nssh.Config, but nothing gave me 100% success. Reading the\r\nsftp.InternalInconsistency (error) documentation states:\r\n\r\n> // InternalInconsistency indicates the packets sent and the data queued to be\r\n> // written to the file don't match up. It is an unusual error and usually is\r\n> // caused by bad behavior server side or connection issues. The error is\r\n> // limited in scope to the call where it happened\r\n\r\nOur SFTP server is just an image from GitHub with stars and some\r\nupdates this year, but I wouldn't call it a production ready image.\r\n\r\nSee: https://github.com/pkg/sftp/issues/287","created_at":"2019-07-25T18:07:56Z","updated_at":"2019-07-25T18:48:14Z","closed_at":"2019-07-25T18:48:14Z","merged_at":"2019-07-25T18:48:14Z","merge_commit_sha":"1542c5bd482ae78406bdd07223613af154048a2d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":837676790,"node_id":"MDU6TGFiZWw4Mzc2NzY3OTA=","url":"https://api.github.com/repos/moov-io/paygate/labels/bug","name":"bug","color":"d73a4a","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/moov-io/paygate/pulls/191/commits","review_comments_url":"https://api.github.com/repos/moov-io/paygate/pulls/191/comments","review_comment_url":"https://api.github.com/repos/moov-io/paygate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moov-io/paygate/issues/191/comments","statuses_url":"https://api.github.com/repos/moov-io/paygate/statuses/6bd56c63a8807268f013cb22c4560ca3231d1d98","head":{"label":"adamdecaf:sftp-file-copy-retry","ref":"sftp-file-copy-retry","sha":"6bd56c63a8807268f013cb22c4560ca3231d1d98","user":{"login":"adamdecaf","id":120951,"node_id":"MDQ6VXNlcjEyMDk1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/120951?v=4","gravatar_id":"","url":"https://api.github.com/users/adamdecaf","html_url":"https://github.com/adamdecaf","followers_url":"https://api.github.com/users/adamdecaf/followers","following_url":"https://api.github.com/users/adamdecaf/following{/other_user}","gists_url":"https://api.github.com/users/adamdecaf/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdecaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdecaf/subscriptions","organizations_url":"https://api.github.com/users/adamdecaf/orgs","repos_url":"https://api.github.com/users/adamdecaf/repos","events_url":"https://api.github.com/users/adamdecaf/events{/privacy}","received_events_url":"https://api.github.com/users/adamdecaf/received_events","type":"User","site_admin":false},"repo":{"id":149837373,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk4MzczNzM=","name":"paygate","full_name":"adamdecaf/paygate","private":false,"owner":{"login":"adamdecaf","id":120951,"node_id":"MDQ6VXNlcjEyMDk1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/120951?v=4","gravatar_id":"","url":"https://api.github.com/users/adamdecaf","html_url":"https://github.com/adamdecaf","followers_url":"https://api.github.com/users/adamdecaf/followers","following_url":"https://api.github.com/users/adamdecaf/following{/other_user}","gists_url":"https://api.github.com/users/adamdecaf/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdecaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdecaf/subscriptions","organizations_url":"https://api.github.com/users/adamdecaf/orgs","repos_url":"https://api.github.com/users/adamdecaf/repos","events_url":"https://api.github.com/users/adamdecaf/events{/privacy}","received_events_url":"https://api.github.com/users/adamdecaf/received_events","type":"User","site_admin":false},"html_url":"https://github.com/adamdecaf/paygate","description":"A RESTful API enabling electronic payments to be submitted and received without a deep understanding payment file specification","fork":true,"url":"https://api.github.com/repos/adamdecaf/paygate","forks_url":"https://api.github.com/repos/adamdecaf/paygate/forks","keys_url":"https://api.github.com/repos/adamdecaf/paygate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamdecaf/paygate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamdecaf/paygate/teams","hooks_url":"https://api.github.com/repos/adamdecaf/paygate/hooks","issue_events_url":"https://api.github.com/repos/adamdecaf/paygate/issues/events{/number}","events_url":"https://api.github.com/repos/adamdecaf/paygate/events","assignees_url":"https://api.github.com/repos/adamdecaf/paygate/assignees{/user}","branches_url":"https://api.github.com/repos/adamdecaf/paygate/branches{/branch}","tags_url":"https://api.github.com/repos/adamdecaf/paygate/tags","blobs_url":"https://api.github.com/repos/adamdecaf/paygate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamdecaf/paygate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamdecaf/paygate/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamdecaf/paygate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamdecaf/paygate/statuses/{sha}","languages_url":"https://api.github.com/repos/adamdecaf/paygate/languages","stargazers_url":"https://api.github.com/repos/adamdecaf/paygate/stargazers","contributors_url":"https://api.github.com/repos/adamdecaf/paygate/contributors","subscribers_url":"https://api.github.com/repos/adamdecaf/paygate/subscribers","subscription_url":"https://api.github.com/repos/adamdecaf/paygate/subscription","commits_url":"https://api.github.com/repos/adamdecaf/paygate/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamdecaf/paygate/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamdecaf/paygate/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamdecaf/paygate/issues/comments{/number}","contents_url":"https://api.github.com/repos/adamdecaf/paygate/contents/{+path}","compare_url":"https://api.github.com/repos/adamdecaf/paygate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamdecaf/paygate/merges","archive_url":"https://api.github.com/repos/adamdecaf/paygate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamdecaf/paygate/downloads","issues_url":"https://api.github.com/repos/adamdecaf/paygate/issues{/number}","pulls_url":"https://api.github.com/repos/adamdecaf/paygate/pulls{/number}","milestones_url":"https://api.github.com/repos/adamdecaf/paygate/milestones{/number}","notifications_url":"https://api.github.com/repos/adamdecaf/paygate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamdecaf/paygate/labels{/name}","releases_url":"https://api.github.com/repos/adamdecaf/paygate/releases{/id}","deployments_url":"https://api.github.com/repos/adamdecaf/paygate/deployments","created_at":"2018-09-22T02:11:26Z","updated_at":"2019-07-24T18:47:12Z","pushed_at":"2019-07-25T18:07:16Z","git_url":"git://github.com/adamdecaf/paygate.git","ssh_url":"git@github.com:adamdecaf/paygate.git","clone_url":"https://github.com/adamdecaf/paygate.git","svn_url":"https://github.com/adamdecaf/paygate","homepage":"http://moov.io","size":5551,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"moov-io:master","ref":"master","sha":"8a5d6f6b04a9d669ad8b6962c245e5eb45f2f719","user":{"login":"moov-io","id":26097026,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDk3MDI2","avatar_url":"https://avatars1.githubusercontent.com/u/26097026?v=4","gravatar_id":"","url":"https://api.github.com/users/moov-io","html_url":"https://github.com/moov-io","followers_url":"https://api.github.com/users/moov-io/followers","following_url":"https://api.github.com/users/moov-io/following{/other_user}","gists_url":"https://api.github.com/users/moov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/moov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moov-io/subscriptions","organizations_url":"https://api.github.com/users/moov-io/orgs","repos_url":"https://api.github.com/users/moov-io/repos","events_url":"https://api.github.com/users/moov-io/events{/privacy}","received_events_url":"https://api.github.com/users/moov-io/received_events","type":"Organization","site_admin":false},"repo":{"id":121570684,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE1NzA2ODQ=","name":"paygate","full_name":"moov-io/paygate","private":false,"owner":{"login":"moov-io","id":26097026,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDk3MDI2","avatar_url":"https://avatars1.githubusercontent.com/u/26097026?v=4","gravatar_id":"","url":"https://api.github.com/users/moov-io","html_url":"https://github.com/moov-io","followers_url":"https://api.github.com/users/moov-io/followers","following_url":"https://api.github.com/users/moov-io/following{/other_user}","gists_url":"https://api.github.com/users/moov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/moov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moov-io/subscriptions","organizations_url":"https://api.github.com/users/moov-io/orgs","repos_url":"https://api.github.com/users/moov-io/repos","events_url":"https://api.github.com/users/moov-io/events{/privacy}","received_events_url":"https://api.github.com/users/moov-io/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/moov-io/paygate","description":"A RESTful API enabling electronic payments to be submitted and received without a deep understanding payment file specification","fork":false,"url":"https://api.github.com/repos/moov-io/paygate","forks_url":"https://api.github.com/repos/moov-io/paygate/forks","keys_url":"https://api.github.com/repos/moov-io/paygate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moov-io/paygate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moov-io/paygate/teams","hooks_url":"https://api.github.com/repos/moov-io/paygate/hooks","issue_events_url":"https://api.github.com/repos/moov-io/paygate/issues/events{/number}","events_url":"https://api.github.com/repos/moov-io/paygate/events","assignees_url":"https://api.github.com/repos/moov-io/paygate/assignees{/user}","branches_url":"https://api.github.com/repos/moov-io/paygate/branches{/branch}","tags_url":"https://api.github.com/repos/moov-io/paygate/tags","blobs_url":"https://api.github.com/repos/moov-io/paygate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moov-io/paygate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moov-io/paygate/git/refs{/sha}","trees_url":"https://api.github.com/repos/moov-io/paygate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moov-io/paygate/statuses/{sha}","languages_url":"https://api.github.com/repos/moov-io/paygate/languages","stargazers_url":"https://api.github.com/repos/moov-io/paygate/stargazers","contributors_url":"https://api.github.com/repos/moov-io/paygate/contributors","subscribers_url":"https://api.github.com/repos/moov-io/paygate/subscribers","subscription_url":"https://api.github.com/repos/moov-io/paygate/subscription","commits_url":"https://api.github.com/repos/moov-io/paygate/commits{/sha}","git_commits_url":"https://api.github.com/repos/moov-io/paygate/git/commits{/sha}","comments_url":"https://api.github.com/repos/moov-io/paygate/comments{/number}","issue_comment_url":"https://api.github.com/repos/moov-io/paygate/issues/comments{/number}","contents_url":"https://api.github.com/repos/moov-io/paygate/contents/{+path}","compare_url":"https://api.github.com/repos/moov-io/paygate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moov-io/paygate/merges","archive_url":"https://api.github.com/repos/moov-io/paygate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moov-io/paygate/downloads","issues_url":"https://api.github.com/repos/moov-io/paygate/issues{/number}","pulls_url":"https://api.github.com/repos/moov-io/paygate/pulls{/number}","milestones_url":"https://api.github.com/repos/moov-io/paygate/milestones{/number}","notifications_url":"https://api.github.com/repos/moov-io/paygate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moov-io/paygate/labels{/name}","releases_url":"https://api.github.com/repos/moov-io/paygate/releases{/id}","deployments_url":"https://api.github.com/repos/moov-io/paygate/deployments","created_at":"2018-02-14T22:52:29Z","updated_at":"2019-07-24T18:46:53Z","pushed_at":"2019-07-25T18:48:14Z","git_url":"git://github.com/moov-io/paygate.git","ssh_url":"git@github.com:moov-io/paygate.git","clone_url":"https://github.com/moov-io/paygate.git","svn_url":"https://github.com/moov-io/paygate","homepage":"http://moov.io","size":5520,"stargazers_count":13,"watchers_count":13,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":27,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":5,"open_issues":27,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moov-io/paygate/pulls/191"},"html":{"href":"https://github.com/moov-io/paygate/pull/191"},"issue":{"href":"https://api.github.com/repos/moov-io/paygate/issues/191"},"comments":{"href":"https://api.github.com/repos/moov-io/paygate/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/moov-io/paygate/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/moov-io/paygate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moov-io/paygate/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/moov-io/paygate/statuses/6bd56c63a8807268f013cb22c4560ca3231d1d98"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"adamdecaf","id":120951,"node_id":"MDQ6VXNlcjEyMDk1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/120951?v=4","gravatar_id":"","url":"https://api.github.com/users/adamdecaf","html_url":"https://github.com/adamdecaf","followers_url":"https://api.github.com/users/adamdecaf/followers","following_url":"https://api.github.com/users/adamdecaf/following{/other_user}","gists_url":"https://api.github.com/users/adamdecaf/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdecaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdecaf/subscriptions","organizations_url":"https://api.github.com/users/adamdecaf/orgs","repos_url":"https://api.github.com/users/adamdecaf/repos","events_url":"https://api.github.com/users/adamdecaf/events{/privacy}","received_events_url":"https://api.github.com/users/adamdecaf/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":15,"deletions":3,"changed_files":1}}
other: {"actor":{"display_login":"adamdecaf"}}