{"action":"created","issue":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/585","labels_url":"https://api.github.com/repos/jinzhu/gorm/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/jinzhu/gorm/issues/585/comments","events_url":"https://api.github.com/repos/jinzhu/gorm/issues/585/events","html_url":"https://github.com/jinzhu/gorm/pull/585","id":97720510,"number":585,"title":"Fixed issue https://github.com/jinzhu/gorm/issues/151 where postgresql connection problems fail silently","user":{"login":"pariz","id":832908,"avatar_url":"https://avatars.githubusercontent.com/u/832908?v=3","gravatar_id":"","url":"https://api.github.com/users/pariz","html_url":"https://github.com/pariz","followers_url":"https://api.github.com/users/pariz/followers","following_url":"https://api.github.com/users/pariz/following{/other_user}","gists_url":"https://api.github.com/users/pariz/gists{/gist_id}","starred_url":"https://api.github.com/users/pariz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pariz/subscriptions","organizations_url":"https://api.github.com/users/pariz/orgs","repos_url":"https://api.github.com/users/pariz/repos","events_url":"https://api.github.com/users/pariz/events{/privacy}","received_events_url":"https://api.github.com/users/pariz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-28T14:32:53Z","updated_at":"2015-08-01T00:53:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jinzhu/gorm/pulls/585","html_url":"https://github.com/jinzhu/gorm/pull/585","diff_url":"https://github.com/jinzhu/gorm/pull/585.diff","patch_url":"https://github.com/jinzhu/gorm/pull/585.patch"},"body":"For reference: https://github.com/jinzhu/gorm/issues/151\r\nErrors connection to a postgresql fail silently, resulting in errors. This fix sends a ping right after the connection has been made. If the ping fails, we assume the connection is broken.\r\n\r\nAccepting better solutions. This quick fix did it for me :)"},"comment":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/comments/126841597","html_url":"https://github.com/jinzhu/gorm/pull/585#issuecomment-126841597","issue_url":"https://api.github.com/repos/jinzhu/gorm/issues/585","id":126841597,"user":{"login":"jinzhu","id":6843,"avatar_url":"https://avatars.githubusercontent.com/u/6843?v=3","gravatar_id":"","url":"https://api.github.com/users/jinzhu","html_url":"https://github.com/jinzhu","followers_url":"https://api.github.com/users/jinzhu/followers","following_url":"https://api.github.com/users/jinzhu/following{/other_user}","gists_url":"https://api.github.com/users/jinzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/jinzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinzhu/subscriptions","organizations_url":"https://api.github.com/users/jinzhu/orgs","repos_url":"https://api.github.com/users/jinzhu/repos","events_url":"https://api.github.com/users/jinzhu/events{/privacy}","received_events_url":"https://api.github.com/users/jinzhu/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T00:53:19Z","updated_at":"2015-08-01T00:53:19Z","body":"Should we always `Ping()` the database after connection?"}}