{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/1737","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/1737/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/1737/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/1737/events","html_url":"https://github.com/erikras/redux-form/issues/1737","id":176035738,"number":1737,"title":"asyncValidate bug: Uncaught (in promise)","user":{"login":"bertho-zero","id":8525267,"avatar_url":"https://avatars.githubusercontent.com/u/8525267?v=3","gravatar_id":"","url":"https://api.github.com/users/bertho-zero","html_url":"https://github.com/bertho-zero","followers_url":"https://api.github.com/users/bertho-zero/followers","following_url":"https://api.github.com/users/bertho-zero/following{/other_user}","gists_url":"https://api.github.com/users/bertho-zero/gists{/gist_id}","starred_url":"https://api.github.com/users/bertho-zero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertho-zero/subscriptions","organizations_url":"https://api.github.com/users/bertho-zero/orgs","repos_url":"https://api.github.com/users/bertho-zero/repos","events_url":"https://api.github.com/users/bertho-zero/events{/privacy}","received_events_url":"https://api.github.com/users/bertho-zero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-09T15:20:43Z","updated_at":"2016-10-10T09:29:34Z","closed_at":"2016-09-15T09:48:37Z","body":"Hello,\r\n\r\nI use the method `asyncValidate` and no matter how I return my errors it returns me an error.\r\n\r\nI have a simple function like the following and any of the following methods works:\r\n\r\n```js\r\nexport function asyncValidate( values, dispatch ) {\r\n  return Promise.reject( {slug: 'merde'} );\r\n  // return Promise.resolve( {slug: 'merde'} );\r\n  // return new Promise( {slug: 'merde'} );\r\n  // throw {slug: 'merde'};\r\n  // return { slug: 'merde' };\r\n}\r\n```\r\n\r\nThe error displayed in  console:\r\n```\r\nUncaught (in promise) Object {slug: \"MERDE\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/252571519","html_url":"https://github.com/erikras/redux-form/issues/1737#issuecomment-252571519","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/1737","id":252571519,"user":{"login":"jainniket","id":10733088,"avatar_url":"https://avatars.githubusercontent.com/u/10733088?v=3","gravatar_id":"","url":"https://api.github.com/users/jainniket","html_url":"https://github.com/jainniket","followers_url":"https://api.github.com/users/jainniket/followers","following_url":"https://api.github.com/users/jainniket/following{/other_user}","gists_url":"https://api.github.com/users/jainniket/gists{/gist_id}","starred_url":"https://api.github.com/users/jainniket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jainniket/subscriptions","organizations_url":"https://api.github.com/users/jainniket/orgs","repos_url":"https://api.github.com/users/jainniket/repos","events_url":"https://api.github.com/users/jainniket/events{/privacy}","received_events_url":"https://api.github.com/users/jainniket/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T09:29:34Z","updated_at":"2016-10-10T09:29:34Z","body":"I'm still facing this issue *Uncaught (in promise)* in asyncValidation.\r\n\r\nWaiting for its fix."}}
{"actor":{"display_login":"jainniket"}}