{"action":"closed","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/817","labels_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/817/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/817/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/817/events","html_url":"https://github.com/aws/aws-sdk-js/issues/817","id":119104422,"number":817,"title":"TypeError  at trying to sending a email.","user":{"login":"briandiaz","id":2363531,"avatar_url":"https://avatars.githubusercontent.com/u/2363531?v=3","gravatar_id":"","url":"https://api.github.com/users/briandiaz","html_url":"https://github.com/briandiaz","followers_url":"https://api.github.com/users/briandiaz/followers","following_url":"https://api.github.com/users/briandiaz/following{/other_user}","gists_url":"https://api.github.com/users/briandiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/briandiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briandiaz/subscriptions","organizations_url":"https://api.github.com/users/briandiaz/orgs","repos_url":"https://api.github.com/users/briandiaz/repos","events_url":"https://api.github.com/users/briandiaz/events{/privacy}","received_events_url":"https://api.github.com/users/briandiaz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-js/labels/Non%20Issue","name":"Non Issue","color":"e6e6e6"},{"url":"https://api.github.com/repos/aws/aws-sdk-js/labels/Question","name":"Question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-26T21:44:49Z","updated_at":"2015-12-04T18:57:07Z","closed_at":"2015-12-04T18:57:07Z","body":"Hi i am trying to send a email but im getting this error.\r\n\r\n```js\r\nconst options = {\r\n    toAddresses: ['briandiaz@outlook.com'],\r\n    body: 'Body message!!',\r\n    subject: 'Testing AWS SDK',\r\n    fromAddress: 'myemail@gmail.com',\r\n  };\r\n```\r\nBTW: *I have valid credentials.*\r\n\r\n```bash\r\nTypeError: Cannot read property 'length' of undefined\r\n      at [object Object].validateList (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/param_validator.js:75:31)\r\n      at [object Object].validateMember (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/param_validator.js:63:21)\r\n      at [object Object].validateStructure (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/param_validator.js:48:14)\r\n      at [object Object].validateMember (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/param_validator.js:61:21)\r\n      at [object Object].validateStructure (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/param_validator.js:48:14)\r\n      at [object Object].validateMember (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/param_validator.js:61:21)\r\n      at [object Object].validate (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/param_validator.js:9:10)\r\n      at Request.VALIDATE_PARAMETERS (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/event_listeners.js:88:32)\r\n      at Request.callListeners (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/sequential_executor.js:105:20)\r\n      at callNextListener (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/sequential_executor.js:95:12)\r\n      at /home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/event_listeners.js:75:9\r\n      at finish (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/config.js:244:7)\r\n      at /home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/config.js:260:9\r\n      at EnvironmentCredentials.get (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/credentials.js:126:7)\r\n      at getAsyncCredentials (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/config.js:254:24)\r\n      at Config.getCredentials (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/config.js:274:9)\r\n      at Request.VALIDATE_CREDENTIALS (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/event_listeners.js:70:26)\r\n      at Request.callListeners (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/sequential_executor.js:101:18)\r\n      at Request.emit (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/sequential_executor.js:77:10)\r\n      at Request.emit (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/request.js:595:14)\r\n      at Request.transition (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/request.js:21:10)\r\n      at AcceptorStateMachine.runTo (/home/brian/instacarro/ic-api-sellers/node_modules/@instacarro/mailer/node_modules/aws-sdk/lib/state_machine.js:14:12)\r\n```"}}