static web "/" not recognized with the universal transport

21 views
Skip to first unread message

InBae Jeong

unread,
Aug 15, 2018, 11:45:05 PM8/15/18
to Crossbar
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 (c) 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

Marcel Maré

unread,
Nov 9, 2018, 5:52:00 PM11/9/18
to Crossbar
I can confirm this problem with a pip installed crossbar. Sorry, no solution.
Reply all
Reply to author
Forward
0 new messages