{"action":"created","issue":{"url":"https://api.github.com/repos/IbuildingsItaly/sails-db2/issues/12","labels_url":"https://api.github.com/repos/IbuildingsItaly/sails-db2/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/IbuildingsItaly/sails-db2/issues/12/comments","events_url":"https://api.github.com/repos/IbuildingsItaly/sails-db2/issues/12/events","html_url":"https://github.com/IbuildingsItaly/sails-db2/issues/12","id":94734550,"number":12,"title":"A hook (`orm`) failed to load!","user":{"login":"granteagon","id":133823,"avatar_url":"https://avatars.githubusercontent.com/u/133823?v=3","gravatar_id":"","url":"https://api.github.com/users/granteagon","html_url":"https://github.com/granteagon","followers_url":"https://api.github.com/users/granteagon/followers","following_url":"https://api.github.com/users/granteagon/following{/other_user}","gists_url":"https://api.github.com/users/granteagon/gists{/gist_id}","starred_url":"https://api.github.com/users/granteagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/granteagon/subscriptions","organizations_url":"https://api.github.com/users/granteagon/orgs","repos_url":"https://api.github.com/users/granteagon/repos","events_url":"https://api.github.com/users/granteagon/events{/privacy}","received_events_url":"https://api.github.com/users/granteagon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T14:29:04Z","updated_at":"2015-08-03T22:09:18Z","closed_at":null,"body":"I'm getting an error trying to connect.  I'm using an ssh tunnel to expose port 50000 locally, if that helps.\r\n\r\nSails v0.11.0\r\nDB2 LUW v9.7\r\n\r\n```\r\ninfo: Starting app...\r\n\r\nerror: A hook (`orm`) failed to load!\r\n/Users/me/Projects/test/node_modules/sails-db2/index.js:224\r\n                if (connection.conn) connection.conn.close(function (err) {\r\n                              ^\r\nTypeError: Cannot read property 'conn' of undefined\r\n    at closeConnection (/Users/me/Projects/test/node_modules/sails-db2/index.js:224:31)\r\n    at forOwn (/Users/me/Projects/test/node_modules/sails-db2/node_modules/lodash/dist/lodash.js:2106:15)\r\n    at Function.forEach (/Users/me/Projects/test/node_modules/sails-db2/node_modules/lodash/dist/lodash.js:3303:9)\r\n    at Object.module.exports.adapter.teardown (/Users/me/Projects/test/node_modules/sails-db2/index.js:232:20)\r\n    at /usr/local/lib/node_modules/sails/lib/hooks/orm/index.js:244:19\r\n    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:122:13\r\n    at _each (/usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:46:13)\r\n    at Object.async.each (/usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:121:9)\r\n    at Sails.hook.teardown (/usr/local/lib/node_modules/sails/lib/hooks/orm/index.js:241:13)\r\n    at Sails.g (events.js:199:16)\r\n    at Sails.emit (events.js:104:17)\r\n    at Sails.emitter.emit (/usr/local/lib/node_modules/sails/lib/app/private/after.js:50:11)\r\n    at /usr/local/lib/node_modules/sails/lib/app/lower.js:60:11\r\n    at beforeShutdown (/usr/local/lib/node_modules/sails/lib/app/lower.js:35:12)\r\n    at Sails.lower (/usr/local/lib/node_modules/sails/lib/app/lower.js:39:3)\r\n    at Sails.bound (/usr/local/lib/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)\r\n```"},"comment":{"url":"https://api.github.com/repos/IbuildingsItaly/sails-db2/issues/comments/127418961","html_url":"https://github.com/IbuildingsItaly/sails-db2/issues/12#issuecomment-127418961","issue_url":"https://api.github.com/repos/IbuildingsItaly/sails-db2/issues/12","id":127418961,"user":{"login":"santec","id":497022,"avatar_url":"https://avatars.githubusercontent.com/u/497022?v=3","gravatar_id":"","url":"https://api.github.com/users/santec","html_url":"https://github.com/santec","followers_url":"https://api.github.com/users/santec/followers","following_url":"https://api.github.com/users/santec/following{/other_user}","gists_url":"https://api.github.com/users/santec/gists{/gist_id}","starred_url":"https://api.github.com/users/santec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santec/subscriptions","organizations_url":"https://api.github.com/users/santec/orgs","repos_url":"https://api.github.com/users/santec/repos","events_url":"https://api.github.com/users/santec/events{/privacy}","received_events_url":"https://api.github.com/users/santec/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T22:09:18Z","updated_at":"2015-08-03T22:09:18Z","body":"Please share your code, so we can try to reproduce the bug."}}