spring-rest-ecommerce icon indicating copy to clipboard operation
spring-rest-ecommerce copied to clipboard

Unable to create the order

Open maqsoodkhan opened this issue 7 years ago • 3 comments

Hi Sir,

http://localhost:8080/cart/0dcd4317-406b-4cc1-b56a-c7870a419fa9/order

could you please help me for creating order.

i am testing this API in swagger and i am facing the issue with validator

Response Body { "timestamp": 1553771519116, "status": 500, "error": "Internal Server Error", "exception": "java.lang.IllegalStateException", "message": "Invalid target for Validator [net.vatri.ecommerce.validators.CartValidator@243f003c]: net.vatri.ecommerce.models.Order@2264ef0e", "path": "/cart/0dcd4317-406b-4cc1-b56a-c7870a419fa9/order" }

Please help me out for the same

maqsoodkhan avatar Mar 28 '19 11:03 maqsoodkhan

Hi Maqsood.

As I can see you have created CartValidator , have you? Maybe error is in there?

vatri avatar Mar 28 '19 12:03 vatri

Thanks for the response:) As I can see you have created CartValidator , have you? Maybe error is in there? Ans : There is no build errors , i am facing issue during create new order API Example - > /cart/0dcd4317-406b-4cc1-b56a-c7870a419fa9/order

Could u please check with your code and let me know

maqsoodkhan avatar Mar 29 '19 06:03 maqsoodkhan

It's being long time I worked on this.

Did you create net.vatri.ecommerce.validators.CartValidator class ? I don't see it in my Git sources.

vatri avatar May 09 '19 10:05 vatri