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

preguntada hace 2 años100 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas