spring-cloud / spring-cloud-stream-samples

Samples for Spring Cloud Stream
Apache License 2.0
956 stars 676 forks source link

source-sample/dynamic-destination-source-kafka: Error #226

Closed amirensit closed 1 year ago

amirensit commented 1 year ago

Hello.

I launched the source-sample/dynamic-destination-source-kafka. I get this error when I use curl command: curl -H "Content-Type: application/json" -X POST -d {"id":"customerId-1","bill-pay":"100"} http://localhost:8080/

com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'id': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (String)"id:customerId-1"; line: 1, column: 3]

amirensit commented 1 year ago

For windows terminal, the curl command should be like this: curl -H "Content-Type: application/json" -X POST -d "{\"id\":\"customerId-1\",\"bill-pay\":\"100\"}" http://localhost:8080