AWS Sns Publish method is not working when application deployed using docker container

0

0

I have wrote java code[Can be found in Screen short] to publish message to aws sns. Below is my issue. 1.When I run the code using command line [cmd: java -jar snsDemo.jar] I am able to publish message to sns Topic 2.But when I hit using the same code via api call which is deployed using docker container. I am not able to publish the message to topic neither I am getting any kind of error.

Issue is same code is working when I run using command line but it is not working when I hit via Api call

Note:Code execution is going till System.out.println(snsClient);[See image attachment] and getting stuck at publish method

image Link: https://i.stack.imgur.com/XJBeb.png

已提问 2 年前100 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则