{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/258","repository_url":"https://api.github.com/repos/balderdashy/sails-postgresql","labels_url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/258/comments","events_url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/258/events","html_url":"https://github.com/balderdashy/sails-postgresql/issues/258","id":172757468,"number":258,"title":"Localhost without connection to internet fails","user":{"login":"mkontsek","id":2892242,"avatar_url":"https://avatars.githubusercontent.com/u/2892242?v=3","gravatar_id":"","url":"https://api.github.com/users/mkontsek","html_url":"https://github.com/mkontsek","followers_url":"https://api.github.com/users/mkontsek/followers","following_url":"https://api.github.com/users/mkontsek/following{/other_user}","gists_url":"https://api.github.com/users/mkontsek/gists{/gist_id}","starred_url":"https://api.github.com/users/mkontsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkontsek/subscriptions","organizations_url":"https://api.github.com/users/mkontsek/orgs","repos_url":"https://api.github.com/users/mkontsek/repos","events_url":"https://api.github.com/users/mkontsek/events{/privacy}","received_events_url":"https://api.github.com/users/mkontsek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-23T17:22:10Z","updated_at":"2016-09-06T05:03:48Z","closed_at":null,"body":"sails v0.12.4\r\nnode v6.3.1\r\nnpm v3.10.3\r\nsails-postgresql v0.11.4\r\nOS: Win7\r\npostgresql: 9.5.4\r\n\r\nIf I keep host in adapter configuration set as \"localhost\", I get an \"Error creating a connection to Postgresql\" if I'm not connected to the internet. If I change the host to \"127.0.0.1\", then I get the connection to postgres even without internet connection (as it should be)."},"comment":{"url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/comments/244850533","html_url":"https://github.com/balderdashy/sails-postgresql/issues/258#issuecomment-244850533","issue_url":"https://api.github.com/repos/balderdashy/sails-postgresql/issues/258","id":244850533,"user":{"login":"sgress454","id":553428,"avatar_url":"https://avatars.githubusercontent.com/u/553428?v=3","gravatar_id":"","url":"https://api.github.com/users/sgress454","html_url":"https://github.com/sgress454","followers_url":"https://api.github.com/users/sgress454/followers","following_url":"https://api.github.com/users/sgress454/following{/other_user}","gists_url":"https://api.github.com/users/sgress454/gists{/gist_id}","starred_url":"https://api.github.com/users/sgress454/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgress454/subscriptions","organizations_url":"https://api.github.com/users/sgress454/orgs","repos_url":"https://api.github.com/users/sgress454/repos","events_url":"https://api.github.com/users/sgress454/events{/privacy}","received_events_url":"https://api.github.com/users/sgress454/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T05:03:48Z","updated_at":"2016-09-06T05:03:48Z","body":"Hi @mkontsek -- it seems unlikekly that this issue is related to the Sails adapter.  It sounds like more of a driver or OS-level thing (like it's not resolving `localhost` to `127.0.0.1`, perhaps because of a DNS setup issue?).  To debug, I'd first ensure that you can connect with the Postgresql client:\r\n\r\n```\r\npsql -h localhost\r\n```"}}
{"actor":{"display_login":"sgress454"}}