Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running the demo #16

Open
vvodicka opened this issue Mar 25, 2024 · 0 comments
Open

Problem running the demo #16

vvodicka opened this issue Mar 25, 2024 · 0 comments

Comments

@vvodicka
Copy link

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."
    ]
}
  1. 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant