This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Amazon SNS Error Message  RSS feed

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I am trying to generate a push notification through Amazon SNS and I am getting this error message.

Caught an AmazonServiceException, which means your request made it to Amazon SNS, but was rejected with an error response for some reason.
Error Message:    The security token included in the request is invalid. (Service: AmazonSNS; Status Code: 403; Error Code: InvalidClientTokenId; Request ID: cf4cbbd5-82e3-5945-9be7-ea3366882153)
HTTP Status Code: 403
AWS Error Code:   InvalidClientTokenId
Error Type:       Client
Request ID:       cf4cbbd5-82e3-5945-9be7-ea3366882153




I used online base64 to hex conversions to convert my device token (that I am pretty sure is in base64) to a hex which is needed and I am still getting the same error and I am not sure what else the issue could be.
 
Rancher
Posts: 3061
33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is this related to java programming?
 
Jerry Girgich
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to use programming to actually get the SNS to send a notification to a device.
 
Jerry Girgich
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and I am using Java for it
 
Norm Radder
Rancher
Posts: 3061
33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post the java code you are having problems with?

If the problem is with the Amazon site, you may need to ask the site about your problems.
 
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!