rtr-nettest / rmbtws

RTR-NetTest Websocket Client
Apache License 2.0
14 stars 11 forks source link

Problem running the demo #16

Open vvodicka opened 6 months ago

vvodicka commented 6 months ago

Hello, I am trying to run demo following the instructions in default mode, but I encountered following issues:

  1. CORS - Access to XMLHttpRequest at 'https://dev.netztest.at/RMBTControlServer/testRequest' from origin 'http://127.0.0.1:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. - I tried to solve this by running chrome with disabled security using command open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" which seemingly helped, because POST to https://dev.netztest.at/RMBTControlServer/testRequest returned 200, but the response contained an error:
    {
    "client_remote_ip": "91.233.248.21",
    "test_uuid": null,
    "result_url": "https://dev.netztest.at/RMBTControlServer/result",
    "result_qos_url": "https://dev.netztest.at/RMBTControlServer/resultQoS",
    "test_duration": "7",
    "test_server_name": "RTR https 100G AT #1 (Vienna)",
    "test_wait": null,
    "test_server_address": "vie1-httpv4.netztest.at",
    "test_numthreads": "3",
    "test_server_port": 443,
    "open_test_uuid": null,
    "test_server_type": "RMBThttp",
    "test_server_encryption": true,
    "test_token": null,
    "test_numpings": "10",
    "test_id": null,
    "loop_uuid": null,
    "provider": null,
    "error_flags": null,
    "error": [
        "Could not connect to database."
    ]
    }
  2. some unknown websocket error occured after a couple of logs:
    connection closed CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …}isTrusted: truebubbles: falsecancelBubble: falsecancelable: falsecode: 1006composed: falsecurrentTarget: WebSocket {url: 'wss://vie1-httpv4.netztest.at/', readyState: 3, bufferedAmount: 0, onopen: null, onerror: ƒ, …}defaultPrevented: falseeventPhase: 0reason: ""returnValue: truesrcElement: WebSocket {url: 'wss://vie1-httpv4.netztest.at/', readyState: 3, bufferedAmount: 0, onopen: null, onerror: ƒ, …}target: WebSocket {url: 'wss://vie1-httpv4.netztest.at/', readyState: 3, bufferedAmount: 0, onopen: null, onerror: ƒ, …}timeStamp: 65305.40000000037type: "close"wasClean: false[[Prototype]]: CloseEvent

    Logs before error:

    getting geolocation
    rmbtws.js:162 got geolocation, obtaining token and websocket address
    rmbtws.js:194 test scheduled for start in null second(s)
    rmbtws.js:306 wss://vie1-httpv4.netztest.at:443
    rmbtws.js:1733 0: reached state: INIT
    rmbtws.js:306 wss://vie1-httpv4.netztest.at:443
    rmbtws.js:1733 1: reached state: INIT
    rmbtws.js:306 wss://vie1-httpv4.netztest.at:443
    rmbtws.js:1733 2: reached state: INIT
    rmbtws.js:1736 0: all threads reached state: INIT
    rmbtws.js:1742 0: no callback registered for state: INIT
    rmbtws.js:1736 1: all threads reached state: INIT
    rmbtws.js:1742 1: no callback registered for state: INIT
    rmbtws.js:1736 2: all threads reached state: INIT
    rmbtws.js:1742 2: no callback registered for state: INIT

Is there something I am missing? Or do I need to run the whole stack including measurement server, database server, backend etc. instead of trying to connect to the default demo server?