julianduque/node-elasticemail

ElasticEmail returns 'Unauthorized:'

Opened this issue · 6 comments

This seems to be due to the POST header having the wrong Content-Type (it needs to be application/x-www-form-urlencoded).

This is resolved if you change Line 21 in api.js from:

 options['json'] = data;

to

 options['form'] = data;

Pull request are welcome :)

+1

I'm fixing this module, will be giving some love this week and hoping to publish a new version with complete API support by this weekend, sorry I had this abandoned.

Seems like this still has not been fixed.

Seems like the npm hosted module has not been updated. Still old code. But git is updated. Thanks

@mbejda @cozzbie @nickyhajal sorry, I kind of abandoned this module since i'm not using it in production anymore but I published a new version with the fix 0.2.0, can you give it a try? also, collaborators welcome!