I've been using the docker image `rabbitmq:management`, and I think I noticed a bug in the most recent image (3.11.0).
Here's an example of the curl script I'm attempting to run:
``` bash
curl -u user:password -i \
-H "content-type:application/json" \
-X POST
http://localhost:15672/api/exchanges/team/platform/publish \
-d'{
"properties":{},
"routing_key":"",
"payload":"{
\"type\":\"type\",
\"action\":\"command\",
}",
"payload_encoding":"string"
}'
```
And here's the response I receive from RMQ:
```
HTTP/1.1 400 Bad Request
content-length: 43
content-security-policy: script-src 'self' 'unsafe-eval' 'unsafe-inline'; object-src 'self'
content-type: application/json
date: Mon, 10 Oct 2022 11:48:04 GMT
server: Cowboy
vary: accept, accept-encoding, origin
{"error":"bad_request","reason":"not_json"}%
```
I was confused by this response because I had used this image for months with the same script and always had success with it. I was curious if it was an issue with the most recent RMQ image version, so I decided to try the same request again with `rabbitmq:3.10-management`, and I managed to get a successful response back.
```
HTTP/1.1 200 OK
cache-control: no-cache
content-length: 15
content-security-policy: script-src 'self' 'unsafe-eval' 'unsafe-inline'; object-src 'self'
content-type: application/json
date: Mon, 10 Oct 2022 12:31:20 GMT
server: Cowboy
vary: accept, accept-encoding, origin
{"routed":true}%
```
I'll use the older image for the time being, but I thought I'd bring this to your attention to see if this is a bug that needs to be fixed and whether this should be an issue posted on the GitHub. Thanks!