[rabbitmq-discuss] Connections loses its only channel, websocket doesn't close

Nikita Tsukanov keks9n at gmail.com
Tue Feb 25 07:21:29 GMT 2014


vhost "bugcheck" access rights for user "guest":

Configure: .*
Write: ^none$
Read: .*

Script:

<html>
<head>


<script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script>
<script src="stomp.js"></script>
<script>

    var ws = new SockJS('http://127.0.0.1:15674/stomp');
    var client = Stomp.over(ws);
    var on_connect = function() {
        console.log('connected');
        client.send('/topic/test', {"content-type":"text/plain"}, "LALALA");
    };
    var on_error =  function() {
        console.log('error');
    };
    client.connect('guest', 'guest', on_connect, on_error, 'bugcheck');
    function send()
    {
        client.send('/topic/test', {"content-type":"text/plain"}, "LALALA");
        return false;
    }
</script>
</head>
<body><a href="javascript:send();"</body>
</html>



2014-02-25 11:08 GMT+04:00 Michael Klishin <mklishin at gopivotal.com>:

>
> On 25 Feb 2014, at 11:04, Nikita Tsukanov <keks9n at gmail.com> wrote:
>
> > {amqp_error,access_refused,
> >             "access to exchange 'production.main.services.presence' in
> vhost 'frontend' refused for user
> '{\"userId\":1,\"namespaces\":[\"production.main\"]}'",
> >             'basic.publish'}
> >
>
> The user in this message is pretty suspicious. Can you post a code snippet
> that
> reproduces the problem?
>
> MK
>
> Software Engineer, Pivotal/RabbitMQ
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140225/4d78057f/attachment.html>


More information about the rabbitmq-discuss mailing list