Router with application session configuration failed.

#1

Hi,

i’m trying to get the example from this page to work: https://github.com/crossbario/crossbar/wiki/Python-Application-Components

And in this section: https://github.com/crossbario/crossbar/wiki/Python-Application-Components#router-with-application-session

It is said that i just have to copy the configuration to my config.json but unfortunately is does not work, and when i run ‘crossbar start’, i get this error:

Invalid configuration: invalid attribute value ‘router’ for attribute ‘type’ in process item
{u’realms’: {u’realm1’: {u’permissions’: {u’anonymous’: {u’access’: {u’*’: {u’call’: True,
u’publish’: True,
u’register’: True,
u’subscribe’: True}},
u’create’: True,
u’join’: True}}}},
u’transports’: [{u’endpoint’: {u’port’: 8080, u’type’: u’tcp’},
u’paths’: {u’/’: {u’directory’: u’…’,
u’type’: u’static’},
u’ws’: {u’type’: u’websocket’,
u’url’: u’ws://localhost:8080/ws’}},
u’type’: u’web’}],
u’type’: u’router’}

Is this part outdated? How can i configure crossbar to run an application session?

Thanks.

0 Likes

#2

Hi Nathan,

the Wiki and code is out of sync .. I am working on pushing a new release this weekend and update the Wiki pages accordingly.

Sorry, announcment will be on this list ..

Cheers,
/Tobias

···

Am 29.05.2014 19:31, schrieb Nathan Biagini:

Hi,

i'm trying to get the example from this page to
work: https://github.com/crossbario/crossbar/wiki/Python-Application-Components

And in this
section: https://github.com/crossbario/crossbar/wiki/Python-Application-Components#router-with-application-session

It is said that i just have to copy the configuration to my config.json
but unfortunately is does not work, and when i run 'crossbar start', i
get this error:

      Invalid configuration: invalid attribute value 'router' for
    attribute 'type' in process item
             {u'realms': {u'realm1': {u'permissions': {u'anonymous':
    {u'access': {u'*': {u'call': True,

                     u'publish': True,

                     u'register': True,

                     u'subscribe': True}},

      u'create': True,

      u'join': True}}}},
              u'transports': [{u'endpoint': {u'port': 8080, u'type':
    u'tcp'},
                               u'paths': {u'/': {u'directory': u'..',
                                                 u'type': u'static'},
                                          u'ws': {u'type': u'websocket',
                                                  u'url':
    u'ws://localhost:8080/ws'}},
                               u'type': u'web'}],
              u'type': u'router'}

Is this part outdated? How can i configure crossbar to run an
application session?

Thanks.

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

0 Likes