{"action":"closed","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4394","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4394/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4394/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4394/events","html_url":"https://github.com/sequelize/sequelize/issues/4394","id":103181905,"number":4394,"title":"SequelizeValidationError: \"046416\" is not a valid integer","user":{"login":"pinoyyid","id":4794942,"avatar_url":"https://avatars.githubusercontent.com/u/4794942?v=3","gravatar_id":"","url":"https://api.github.com/users/pinoyyid","html_url":"https://github.com/pinoyyid","followers_url":"https://api.github.com/users/pinoyyid/followers","following_url":"https://api.github.com/users/pinoyyid/following{/other_user}","gists_url":"https://api.github.com/users/pinoyyid/gists{/gist_id}","starred_url":"https://api.github.com/users/pinoyyid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinoyyid/subscriptions","organizations_url":"https://api.github.com/users/pinoyyid/orgs","repos_url":"https://api.github.com/users/pinoyyid/repos","events_url":"https://api.github.com/users/pinoyyid/events{/privacy}","received_events_url":"https://api.github.com/users/pinoyyid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-26T05:55:27Z","updated_at":"2015-08-26T07:04:48Z","closed_at":"2015-08-26T07:04:48Z","body":"I'm getting the error/stack trace below. The scenario is:-\r\n * This is running my unit tests which reset the database to a know position and then run my suite of tests\r\n * The error is intermittent. Just to emphasise, the database always starts in the same state and I run the same test suite.\r\n * The stack trace doesn't seem to refer to any of my code\r\n * At no point in my code do I assign 046416 to any int variables. The number 046416 changes from run to run, but is always 6 digits.\r\n * afaik, 046416 is a valid integer\r\n\r\nAt the very least I'd like to catch this exception, but given it's not being thrown by my code, I'm not sure what I need to wrap in try/catch.\r\n\r\n\r\nUnhandled rejection SequelizeValidationError: \"046416\" is not a valid integer\r\n   at INTEGER.validate (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/lib/data-types.js:233:11)\r\n   at Object.QueryGenerator.escape (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/lib/dialects/postgres/query-generator.js:894:20)\r\n   at Object.QueryGenerator.updateQuery (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/lib/dialects/abstract/query-generator.js:414:58)\r\n   at QueryInterface.update (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/lib/query-interface.js:586:33)\r\n   at null.<anonymous> (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/lib/instance.js:651:56)\r\n   at tryCatcher (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/node_modules/bluebird/js/main/util.js:26:23)\r\n   at Promise._settlePromiseFromHandler (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/node_modules/bluebird/js/main/promise.js:503:31)\r\n   at Promise._settlePromiseAt (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/node_modules/bluebird/js/main/promise.js:577:18)\r\n   at Promise._settlePromises (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/node_modules/bluebird/js/main/promise.js:693:14)\r\n   at Async._drainQueue (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/node_modules/bluebird/js/main/async.js:123:16)\r\n   at Async._drainQueues (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/node_modules/bluebird/js/main/async.js:133:10)\r\n   at Immediate.Async.drainQueues [as _onImmediate] (/shared2/eclipse_workspaces/GITREPOS/sendit/sas/node_modules/sequelize/node_modules/bluebird/js/main/async.js:15:14)\r\n   at processImmediate [as _immediateCallback] (timers.js:367:17)"}}