{"action":"created","issue":{"url":"https://api.github.com/repos/aheckmann/node-ses/issues/17","labels_url":"https://api.github.com/repos/aheckmann/node-ses/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/aheckmann/node-ses/issues/17/comments","events_url":"https://api.github.com/repos/aheckmann/node-ses/issues/17/events","html_url":"https://github.com/aheckmann/node-ses/issues/17","id":93641775,"number":17,"title":"HPE_INVALID_CONSTANT","user":{"login":"calebbrewer","id":2624295,"avatar_url":"https://avatars.githubusercontent.com/u/2624295?v=3","gravatar_id":"","url":"https://api.github.com/users/calebbrewer","html_url":"https://github.com/calebbrewer","followers_url":"https://api.github.com/users/calebbrewer/followers","following_url":"https://api.github.com/users/calebbrewer/following{/other_user}","gists_url":"https://api.github.com/users/calebbrewer/gists{/gist_id}","starred_url":"https://api.github.com/users/calebbrewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebbrewer/subscriptions","organizations_url":"https://api.github.com/users/calebbrewer/orgs","repos_url":"https://api.github.com/users/calebbrewer/repos","events_url":"https://api.github.com/users/calebbrewer/events{/privacy}","received_events_url":"https://api.github.com/users/calebbrewer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-07T22:17:07Z","updated_at":"2015-07-08T01:06:08Z","closed_at":"2015-07-08T01:03:14Z","body":"I'm getting [Error: Parse Error] bytesParsed: 0, code: 'HPE_INVALID_CONSTANT' when I run this:\r\n```\r\n'use strict';\r\nvar ses = require('node-ses'),\r\n\tclient = ses.createClient({ key: '*****', secret: '*****', amazon: 'https://email-smtp.us-east-1.amazonaws.com' });\r\n \r\nclient.sendemail({\r\n\tto: 'test@test.com',\r\n\tfrom: 'reminders@test.com',\r\n\tsubject: 'Sending email through Node and Amazon SES Test',\r\n\tmessage: 'Did you get this?',\r\n\taltText: 'Did you get this?'\r\n}, function (err, data, res) {\r\n\tconsole.log('res= ' + res);\r\n\t\r\n\tif (err) {\r\n\tconsole.log(err); \r\n\t}\r\n\t\r\n\tconsole.log(data);\r\n});\r\n```\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/aheckmann/node-ses/issues/comments/119390307","html_url":"https://github.com/aheckmann/node-ses/issues/17#issuecomment-119390307","issue_url":"https://api.github.com/repos/aheckmann/node-ses/issues/17","id":119390307,"user":{"login":"markstos","id":25829,"avatar_url":"https://avatars.githubusercontent.com/u/25829?v=3","gravatar_id":"","url":"https://api.github.com/users/markstos","html_url":"https://github.com/markstos","followers_url":"https://api.github.com/users/markstos/followers","following_url":"https://api.github.com/users/markstos/following{/other_user}","gists_url":"https://api.github.com/users/markstos/gists{/gist_id}","starred_url":"https://api.github.com/users/markstos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstos/subscriptions","organizations_url":"https://api.github.com/users/markstos/orgs","repos_url":"https://api.github.com/users/markstos/repos","events_url":"https://api.github.com/users/markstos/events{/privacy}","received_events_url":"https://api.github.com/users/markstos/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T01:06:08Z","updated_at":"2015-07-08T01:06:08Z","body":"You could also try routing the request through a debugging proxy like the Charles Debug Proxy to check the raw HTTP request and response sent and received from Amazon.  Does the request look valid? Does it match Amazon's spec for their SES API?  What does the raw response say?\r\n\r\nAlso, did you validate 'reminders@test.com' as  a sender? It seems unlikely you control email at `test.com`. Try sending again from from a verified sender or domain. "}}