{"action":"created","issue":{"url":"https://api.github.com/repos/mysqljs/mysql/issues/2091","repository_url":"https://api.github.com/repos/mysqljs/mysql","labels_url":"https://api.github.com/repos/mysqljs/mysql/issues/2091/labels{/name}","comments_url":"https://api.github.com/repos/mysqljs/mysql/issues/2091/comments","events_url":"https://api.github.com/repos/mysqljs/mysql/issues/2091/events","html_url":"https://github.com/mysqljs/mysql/issues/2091","id":352466441,"node_id":"MDU6SXNzdWUzNTI0NjY0NDE=","number":2091,"title":"Quit inactivity timeout : Lambda / node 8.10","user":{"login":"a1anw2","id":4046811,"node_id":"MDQ6VXNlcjQwNDY4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/4046811?v=4","gravatar_id":"","url":"https://api.github.com/users/a1anw2","html_url":"https://github.com/a1anw2","followers_url":"https://api.github.com/users/a1anw2/followers","following_url":"https://api.github.com/users/a1anw2/following{/other_user}","gists_url":"https://api.github.com/users/a1anw2/gists{/gist_id}","starred_url":"https://api.github.com/users/a1anw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1anw2/subscriptions","organizations_url":"https://api.github.com/users/a1anw2/orgs","repos_url":"https://api.github.com/users/a1anw2/repos","events_url":"https://api.github.com/users/a1anw2/events{/privacy}","received_events_url":"https://api.github.com/users/a1anw2/received_events","type":"User","site_admin":false},"labels":[{"id":560923275,"node_id":"MDU6TGFiZWw1NjA5MjMyNzU=","url":"https://api.github.com/repos/mysqljs/mysql/labels/needs%20more%20info","name":"needs more info","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-08-21T09:52:19Z","updated_at":"2018-09-03T23:55:40Z","closed_at":null,"author_association":"NONE","body":"After looking around, I see this was a bug others have bumped into, but a claim that it was the fault of node 4 and all you needed to do was to upgrade.   This however does not help.\r\n\r\nI am running on AWS Lambda with node 8.10 and every so often I get the following in the log files.  It is intermittent with no specific reason.   I am opening a connection and closing it down on a 'finally' clause if that helps.\r\n\r\n```\r\n2018-08-21T09:40:45.331Z\t46fbd76e-a526-11e8-b235-4de84692bdfc\tUnhandled rejection Error: Quit inactivity timeout\r\nat Quit.<anonymous> (/var/task/node_modules/promise-mysql/node_modules/mysql/lib/protocol/Protocol.js:163:17)\r\nat emitNone (events.js:106:13)\r\nat Quit.emit (events.js:208:7)\r\nat Quit._onTimeout (/var/task/node_modules/promise-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:124:8)\r\nat Timer._onTimeout (/var/task/node_modules/promise-mysql/node_modules/mysql/lib/protocol/Timer.js:32:23)\r\nat ontimeout (timers.js:482:11)\r\nat tryOnTimeout (timers.js:317:5)\r\nat Timer.listOnTimeout (timers.js:277:5)\r\n--------------------\r\nat Protocol._enqueue (/var/task/node_modules/promise-mysql/node_modules/mysql/lib/protocol/Protocol.js:144:48)\r\nat Protocol.quit (/var/task/node_modules/promise-mysql/node_modules/mysql/lib/protocol/Protocol.js:91:23)\r\nat Connection.end (/var/task/node_modules/promise-mysql/node_modules/mysql/lib/Connection.js:241:18)\r\nat /var/task/node_modules/promise-mysql/lib/helper.js:16:24\r\nat Promise._execute (/var/task/node_modules/bluebird/js/release/debuggability.js:303:9)\r\nat Promise._resolveFromExecutor (/var/task/node_modules/bluebird/js/release/promise.js:483:18)\r\nat new Promise (/var/task/node_modules/bluebird/js/release/promise.js:79:10)\r\nat Connection.promiseCallback (/var/task/node_modules/promise-mysql/lib/helper.js:6:10)\r\nat connection.end (/var/task/node_modules/promise-mysql/lib/connection.js:96:28)\r\nat Object.list [as GET] (/var/task/api/console/solicitation.js:167:14)\r\nat <anonymous>\r\n```"},"comment":{"url":"https://api.github.com/repos/mysqljs/mysql/issues/comments/418206898","html_url":"https://github.com/mysqljs/mysql/issues/2091#issuecomment-418206898","issue_url":"https://api.github.com/repos/mysqljs/mysql/issues/2091","id":418206898,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODIwNjg5OA==","user":{"login":"a1anw2","id":4046811,"node_id":"MDQ6VXNlcjQwNDY4MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/4046811?v=4","gravatar_id":"","url":"https://api.github.com/users/a1anw2","html_url":"https://github.com/a1anw2","followers_url":"https://api.github.com/users/a1anw2/followers","following_url":"https://api.github.com/users/a1anw2/following{/other_user}","gists_url":"https://api.github.com/users/a1anw2/gists{/gist_id}","starred_url":"https://api.github.com/users/a1anw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1anw2/subscriptions","organizations_url":"https://api.github.com/users/a1anw2/orgs","repos_url":"https://api.github.com/users/a1anw2/repos","events_url":"https://api.github.com/users/a1anw2/events{/privacy}","received_events_url":"https://api.github.com/users/a1anw2/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T23:55:40Z","updated_at":"2018-09-03T23:55:40Z","author_association":"NONE","body":"I didn't include the require modules ... i am using https://www.npmjs.com/package/promise-mysql that wraps all the calls in a promise."}}
{"actor":{"display_login":"a1anw2"}}