static web "/" not recognized with the universal transport

#1

My config.json is as follows:

“transports”: [

{

“type”: “universal”,

“endpoint”: {

“type”: “tcp”,

“port”: 8080

},

“rawsocket”: {

},

“websocket”: {

“ws”: {

“type”: “websocket”

}

},

“web”: {

“paths”: {

"/": {

"type": “static”,

"directory": “…/web”,

"options": {

"enable_directory_listing": true

}

},

"w": {

"type": “static”,

"directory": “…/web”,

"options": {

"enable_directory_listing": true

}

},

“info”: {

“type”: “nodeinfo”

}

}

}

}

]

I got “No such resource” when I connect to “http://127.0.0.1:8080/”, but got a directory listing with “http://127.0.0.1:8080/w/” as expected.

What should I do to make “/” work?

FYI, I installed crossbar with pip in a virtualenv.

$ crossbar version

:::::::::::::::::

::::: _____ __

::::: : ::::: / /_ ___ ___ ___ / / ___ _ ____

::::::: ::::::: / /__ / __// _ \ (-< (-< / _ / _ `// __/

::::: : ::::: _//_/ _//_////./_,///

:::::

::::::::::::::::: Crossbar v18.7.2

Copyright © 2013-2018 Crossbar.io Technologies GmbH, licensed under AGPL 3.0.

Crossbar.io : 18.7.2

Autobahn : 18.7.1

Twisted : 18.7.0-EPollReactor

LMDB : 0.94/lmdb-0.9.22

Python : 3.6.5/CPython

Frozen executable : no

Operating system : Linux-4.4.0-17134-Microsoft-x86_64-with-Ubuntu-18.04-bionic

Host machine : x86_64

Release key : RWS9T4NltFjmKSMbEtETnOMxRjLhOEZ6e80T5MYzTTh/+NP9Jk20sJmA

0 Likes

#2

I can confirm this problem with a pip installed crossbar. Sorry, no solution.

0 Likes