streadway / amqp

Go client for AMQP 0.9.1
http://godoc.org/github.com/streadway/amqp
BSD 2-Clause "Simplified" License
4.88k stars 621 forks source link

Having some not string error when sending nested JSON payload to RabbitMQ #509

Open jayber01 opened 3 years ago

jayber01 commented 3 years ago

"error":"bad_request","reason":"payload_not_string"}

this is my test JSON

{ "properties": {
"content_type": "application/json"},
"routing_key": "info",
"payload_encoding": "string",
"payload": {
"records":{
"name":"testname"}}}