[rabbitmq-discuss] JSON-RPC: RPC endpoint responds with "not found"
Simon MacMullen
simon at rabbitmq.com
Tue Jul 10 14:52:49 BST 2012
Are you sure you are definitely running 2.8.2? The version of
rfc4627_jsonrpc_mochiweb in 2.8.2 definitely does not have references to
mochiweb_request:accepts_content_type/2 in it, so I am quite suspicious.
Cheers, Simon
On 10/07/12 13:41, Juan Cerezuela wrote:
> Hi Simon
>
> I uninstalled 2.8.4, then I installed 2.8.2 and I still see the same
> problem. I see this in rabbit at myhost-sasl.log :
>
> =CRASH REPORT==== 10-Jul-2012::13:36:17 ===
> crasher:
> initial call: mochiweb_acceptor:init/3
> pid: <0.509.14>
> registered_name: []
> exception error: undefined function
> mochiweb_request:accepts_content_type/2
> in function rfc4627_jsonrpc_mochiweb:handle/2
> in call from rabbit_jsonrpc:'-start/2-fun-0-'/3
> in call from mochiweb_http:headers/5
> ancestors: ['rabbit_mochiweb_web_*',rabbit_mochiweb_sup,<0.126.0>]
> messages: []
> links: [<0.137.0>,#Port<0.10941>]
> dictionary: [{mochiweb_request_body,undefined},
> {mochiweb_request_qs,[]},
> {mochiweb_request_path,"/rpc/tunnel"}]
> trap_exit: false
> status: running
> heap_size: 1597
> stack_size: 24
> reductions: 2549
> neighbours:
>
> Cheers
>
> On 10 July 2012 12:36, Simon MacMullen <simon at rabbitmq.com
> <mailto:simon at rabbitmq.com>> wrote:
>
> On 09/07/12 20:41, Caerbannog wrote:
>
> When I open http://localhost:55670/rpc
> <http://smuc1697:55670/rpc> in
> the browser I get a blank page with the text "Not found."
>
>
> Believe it or not, that's what it should do. The /rpc endpoint i9s
> not designed to be used via a browser. The /rpc-examples path should
> work...
>
> ... however, in looking at this I noticed that it doesn't. It looks
> like rabbitmq-jsonrpc-channel is broken in 2.8.4 (hurrah for
> automated tests that have to run in a browser and not a CI server).
>
> If you need to use rabbitmq-jsonrpc-channel you'll have to downgrade
> to 2.8.2. Or slightly more favourably, you can extract the file
> "rfc4627_jsonrpc-2.8.2-git.ez" from
> http://www.rabbitmq.com/__releases/rabbitmq-server/v2.8.__2/rabbitmq-server-windows-2.8.__2.zip
> <http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.2/rabbitmq-server-windows-2.8.2.zip>
> and use that to replace the equivalent plugin in C:\Program
> Files\RabbitMQ Server\rabbitmq_server-2.8.4\__plugins
>
> Bah.
>
> Cheers, Simon
>
> --
> Simon MacMullen
> RabbitMQ, VMware
>
>
--
Simon MacMullen
RabbitMQ, VMware
More information about the rabbitmq-discuss
mailing list