Replies: 1 comment
-
Hello, thanks for using RabbitMQ Rather than write your own API client code, you should be using this library - https://github.com/rabbitmq/hop
I sense quite a bit of entitlement here and am reluctant to assist you. You have not provided any evidence that what you observe is due to anything but your code or your particular environment. The simplest explanation is that your Java code is making an HTTP request differently than At the very minimum, you must provide a Java project that consistently demonstrates what you're seeing. A code snippet is not useful. I should be able to clone a repository, build it, and run it. Be sure to include the following as well:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
This is a response I get
when I call http://localhost:15672/api/queues/%2F/batch-processor-queue with the following code
And here's the response I get if I paste the http://localhost:15672/api/queues/%2F/batch-processor-queue url in a browser.
Browser JSON response
BTW curl also seems to be returning full response as above.
even if I add exactly the same headers the brower seems to be adding ...
I still get the same short useless response with garbage_collection info only. There's no clear documentation how to get it to work when invoked by restful client in code as id does in the browser.
Expected behavior
Why don't you get it to send same responses in rest clients as it does in browser/curl, or if there're some hidden switches one has to use for it to work in the code exactly as it does in the browser please make it obvious, perhaps come up with some examples otherwise people are wasting hours on something that should be simple and pretty much work out of the box.
Beta Was this translation helpful? Give feedback.
All reactions