Email Subscription to CNS topic failing

62 views
Skip to first unread message

Ravi Chikkam

unread,
Jul 19, 2014, 2:45:08 PM7/19/14
to cmb-use...@googlegroups.com
I am building an application that need to publish information to various end-points. I am using CNS to send the message and have various end-points subscribe to the topic in CNS.  I am able to successfully register CQS queue end-points. I am not successful in registering email subscription via the web dashboard. The following error is thrown. Can you please help?

InvalidParameterException: Status Code: 400, AWS Service: AmazonSNS, AWS Request ID: bda56db3-ebd2-41f9-b7c6-a46e8cad506e, AWS Error Code: InvalidParameter, AWS Error Message: Invalid parameter: Unreachable endpoint ravibabu...@gmail.com
	at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:679)
	at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:350)
	at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:202)
	at com.amazonaws.services.sns.AmazonSNSClient.invoke(AmazonSNSClient.java:1258)
	at com.amazonaws.services.sns.AmazonSNSClient.subscribe(AmazonSNSClient.java:364)
	at com.comcast.cns.controller.CNSSubscriptionPageServlet.doGet(CNSSubscriptionPageServlet.java:78)
	at com.comcast.cns.controller.CNSSubscriptionPageServlet.doPost(CNSSubscriptionPageServlet.java:213)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:457)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:368)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Unknown Source)

boriwo

unread,
Jul 21, 2014, 9:20:38 PM7/21/14
to cmb-use...@googlegroups.com
Please provide the exact API call you are using when subscribing to email endpoints. Did you choose "email" as protocol type? Did you try this via web ui or via AWS SDK?

Ravi Chikkam

unread,
Jul 22, 2014, 1:14:59 PM7/22/14
to cmb-use...@googlegroups.com
On the WebUI it is failing. I chose email as protocol.

boriwo

unread,
Jul 22, 2014, 4:30:59 PM7/22/14
to cmb-use...@googlegroups.com
For the email protocol to work you need to configure an email relay service in cmb.properties. You need to set cmb.cns.smtp.enabled to true and also set credentials for a valid smtp account. Have you done this?

cmb.cns.smtp.enabled=true
cmb.cns.smtp.hostname=
cmb.cns.smtp.username=
cmb.cns.smtp.password=
cmb.cns.smtp.replyAddress=

Reply all
Reply to author
Forward
0 new messages