parse-server-modules / parse-server-sns-adapter

Parse Server SNS Adapter
18 stars 14 forks source link

Error not being thrown? #3

Closed nitrag closed 8 years ago

nitrag commented 8 years ago

I'm getting this on "npm start", shouldn't I be seeing the actual error message?

/Users/ryan/Documents/Parse/parse-offroad-server/node_modules/parse-server-sns-adapter/src/SNSPushAdapter.js:20
        throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED,
        ^
[object Object]

Using node 4.3.1 now.

Also, FYI @rogerhu your pushConfig json variable in the README isn't valid. There's an extra "}".

Also, is the "ARN" the full "ARN" in AWS console(arn:aws:sns:us-east-1:12345677890:app/GCM/appname_MOBILEHUB_12345678) or just the "Name". Confusing because you have us specify the region when it is in the full ARN field. Maybe you didn't want to parse it out?

rogerhu commented 8 years ago

Somehow accessKey and secretKey are not being supplied.

Arn is the full arn starting with arn:

rogerhu commented 8 years ago

Fixed readme. For reference you can look at the spec/ tests to see how to instantiate