SAP-samples / cloud-espm-cloud-native

Enterprise Sales and Procurement Model (ESPM) Cloud Native is a project that showcases how an application can be made resilient by implementing resilience design patterns. This application is developed using Spring Boot framework and can be deployed locally as well as on SAP BTP, Cloud Foundry environment.
Apache License 2.0
39 stars 41 forks source link

Sale order creation cancelled - 500 internal server error, while creating sales order #6

Closed manjunathgudisi closed 4 years ago

manjunathgudisi commented 4 years ago

Hi

I have successfully deployed all the apps using cf deploy command. Also created all the necesseary service instances like espm-destinations espm-em, espm-hana-db..etc.

Getting "Sale order creation cancelled " message when I try to create a sale order in webshop app.

Here is the network log (from Inspect element)

{"timestamp":"2020-04-15T07:07:33.594+0000","status":500,"error":"Internal Server Error","message":"target (topic/queue) forbidden (220056) [condition = amqp:internal-error]","path":"/sale.svc/api/v1/salesOrders"}

Here is the cf logs espm-sales-svc

Screen Shot 2020-04-15 at 12 46 03 PM

Seems to be this is an issue enterprise messaging. Could you please help me where Im doing wrong.

Screen Shot 2020-04-15 at 12 51 22 PM

Thank you, Manju

indusankar89 commented 4 years ago

Hi Manju,

Have you edited the Queue_name in manifest.yml file to the one that u have created.

Regards, Indu

manjunathgudisi commented 4 years ago

Hi @indusankar89 yes, I have done it already and it is like this in manifest.yml file QUEUE_NAME: "demo/espm/messages/salesorderqueue"

manjunathgudisi commented 4 years ago

Thank you @indusankar89 for your call. I have fixed the issue as you mentioned. It was an issue with QUEUE_NAME in mta.yml file. Thank you once again.