[rabbitmq-discuss] question about rabbitmq http api basic auth
Simon MacMullen
simon at rabbitmq.com
Wed May 15 14:33:06 BST 2013
On 15/05/13 03:32, Sungwon Jung wrote:
> Hello. I have a question about rabbitmq http api basic auth.
>
> I use rabbitmq v3.1.0 and my code is below.
<snip code>
I ran your code successfully (once I changed the HttpPut to an HttpGet),
and changed the user / password / hostname / vhost to point to my rabbit.
> 11:21:08 [WARN ](DefaultRequestDirector.java:1095) Authentication error:
> basic authorization challenge expected, but not found
I never saw this (using HttpClient 4.2.5).
> 11:21:08 [INFO ](HealthCheckController.java:103) ===================
> 11:21:08 [INFO ](HealthCheckController.java:104) HTTP/1.1 401
> Unauthorized [Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted
> it blue), Date: Wed, 15 May 2013 02:21:08 GMT
> , Content-Length: 50]
> 11:21:08 [INFO ](HealthCheckController.java:108)
> {"error":"not_authorised","reason":"Login failed"}
...and this really implies that your user is not authorised to connect.
That's exactly what you would see if the username / password is wrong.
Cheers, Simon
> 11:21:08 [INFO ](HealthCheckController.java:110) ===================
>
>
> account, password, ip and api are all correct. but I cannot authorized.
>
> What's wrong in my code?
>
> Thank you.
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
--
Simon MacMullen
RabbitMQ, Pivotal
More information about the rabbitmq-discuss
mailing list