The WebSocketPeer in Godot Engine won't work

Hi, people! :victory_hand:

I’m working on the game that developed in Godot Engine and uses WebSocketPeer for multiplaying.

WebSocketPeer works perfectly on Desktop’s platforms. But when I export the game for WebGL, upload the game to the VPS server, then launch the game from a browser, it doesn’t works.

For HTTP server, I obviously use NGINX.

Here’s some logs from the browser’s console:

Blocked loading mixed active content “http://218.14.40.150:777/abilities/active/all” game.js:9:186044
TypeError: NetworkError when attempting to fetch resource.
    create https://example.com/game.js:9
    _godot_js_fetch_create https://example.com/game.js:9
    callUserCallback https://example.com/game.js:9
    runIter https://example.com/game.js:9
    Browser_mainLoop_runner https://example.com/game.js:9
game.js:474:18
SCRIPT ERROR: Assertion failed. game.js:474:18
   at: HttpHighClient.send_request (res://scripts/common/http/http_high_client.gd:37) game.js:474:18
ERROR: Parse JSON failed. Error at line 0: Unknown error getting token game.js:474:18
   at: parse_string (core/io/json.cpp:582) game.js:474:18
�[91m�[1mERROR: �[22mDB API can't read this response: /abilities/active/all�[39m�[0m game.js:459:16
ERROR: DB API can't read this response: /abilities/active/all game.js:474:18
   at: push_error (core/variant/variant_utility.cpp:1098) game.js:474:18

P.S: Some content from the logs was changed for privacy reason.

Here’s the configs from NGINX for the game:

 server {
    listen 443 ssl;
    listen [::]:443 ssl;

    root /var/www/game;

    index game.html;

    server_name example.com;

    location / {
            add_header Cross-Origin-Resource-Policy 'same-origin';
            add_header Cross-Origin-Opener-Policy 'same-origin';
            add_header Cross-Origin-Embedder-Policy 'require-corp';

            add_header Referrer-Policy 'same-origin';

            try_files $uri $uri/ =404;
    }

    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

server {
    if ($host = example.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80;
    listen [::]:80;

    server_name example.com;
    return 404; # managed by Certbot
}

P.S: Some content here also was changed for privacy reason.


Maybe I will need to add, or modify some headers in NGINX? :thinking: Or what can I do wrong, folks?

Thanks in advance.

Hi @xolatgames!

At first glance, this seems like a godot/WebSockerPeer issue, not an NGINX issue. Your NGINX config is quite simple all things considered. Can you share your NGINX logs too?

Hi, @alessandro! :waving_hand::victory_hand: Where can I find them?

You should be able to find them under /var/log/nginx :slight_smile:

Here’s so many logs :grimacing::

$ ls -l /var/log/nginx/
total 568
-rw-r----- 1 www-data adm  62944 Oct  9 15:00 access.log
-rw-r----- 1 www-data adm 167294 Oct  8 23:56 access.log.1
-rw-r----- 1 www-data adm  20508 Sep 29 23:54 access.log.10.gz
-rw-r----- 1 www-data adm  20918 Sep 28 23:56 access.log.11.gz
-rw-r----- 1 www-data adm  21868 Sep 27 23:59 access.log.12.gz
-rw-r----- 1 www-data adm  17888 Sep 26 23:59 access.log.13.gz
-rw-r----- 1 www-data adm  19527 Sep 25 23:59 access.log.14.gz
-rw-r----- 1 www-data adm  24031 Oct  7 23:57 access.log.2.gz
-rw-r----- 1 www-data adm  14992 Oct  6 23:59 access.log.3.gz
-rw-r----- 1 www-data adm  16146 Oct  5 23:59 access.log.4.gz
-rw-r----- 1 www-data adm  18031 Oct  4 23:50 access.log.5.gz
-rw-r----- 1 www-data adm  18380 Oct  3 23:59 access.log.6.gz
-rw-r----- 1 www-data adm  19005 Oct  2 23:57 access.log.7.gz
-rw-r----- 1 www-data adm  24434 Oct  1 23:55 access.log.8.gz
-rw-r----- 1 www-data adm  17364 Sep 30 23:52 access.log.9.gz
-rw-r----- 1 www-data adm   2885 Oct  9 14:53 error.log
-rw-r----- 1 www-data adm   4031 Oct  8 23:38 error.log.1
-rw-r----- 1 www-data adm    314 Sep 29 23:01 error.log.10.gz
-rw-r----- 1 www-data adm    321 Sep 28 19:07 error.log.11.gz
-rw-r----- 1 www-data adm    358 Sep 27 18:32 error.log.12.gz
-rw-r----- 1 www-data adm    274 Sep 26 18:56 error.log.13.gz
-rw-r----- 1 www-data adm    266 Sep 25 23:16 error.log.14.gz
-rw-r----- 1 www-data adm    473 Oct  7 21:25 error.log.2.gz
-rw-r----- 1 www-data adm    455 Oct  6 23:15 error.log.3.gz
-rw-r----- 1 www-data adm    445 Oct  5 23:24 error.log.4.gz
-rw-r----- 1 www-data adm    501 Oct  4 20:40 error.log.5.gz
-rw-r----- 1 www-data adm    464 Oct  3 23:18 error.log.6.gz
-rw-r----- 1 www-data adm    423 Oct  2 23:39 error.log.7.gz
-rw-r----- 1 www-data adm    496 Oct  1 21:45 error.log.8.gz
-rw-r----- 1 www-data adm    473 Sep 30 20:30 error.log.9.gz

Which of them?

Uh interesting. Probably the latest access.log and error.log.

Ok :ok_hand:

Here’s the last lines of the last access.log log:

103.252.89.75 - - [09/Oct/2025:12:59:29 +0000] "GET / HTTP/1.1" 200 615 "-" "-"
195.178.110.109 - - [09/Oct/2025:13:03:42 +0000] "\x16\x03\x01\x00\xEA\x01\x00\x00\xE6\x03\x03\xBE)Kp\xD3\x1B\xF3\xFF\xB1\x15\x11\x1C\x9B\xDCS\x03" 400 157 "-" "-"
195.178.110.109 - - [09/Oct/2025:13:03:42 +0000] "GET / HTTP/1.1" 400 157 "-" "-"
195.178.110.109 - - [09/Oct/2025:13:03:42 +0000] "GET / HTTP/1.1" 200 615 "-" "l9tcpid/v1.1.0"
117.72.49.15 - - [09/Oct/2025:13:06:06 +0000] "POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1" 400 157 "-" "-"
117.72.49.15 - - [09/Oct/2025:13:06:09 +0000] "POST /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh HTTP/1.1" 400 157 "-" "-"
117.72.49.15 - - [09/Oct/2025:13:06:10 +0000] "POST /hello.world?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:10 +0000] "POST /?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input HTTP/1.1" 405 157 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:11 +0000] "GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:12 +0000] "GET /vendor/phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:14 +0000] "GET /vendor/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:15 +0000] "GET /vendor/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:16 +0000] "GET /vendor/phpunit/phpunit/LICENSE/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:17 +0000] "GET /vendor/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:21 +0000] "GET /phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:21 +0000] "GET /phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:26 +0000] "GET /phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:27 +0000] "GET /phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:39 +0000] "GET /lib/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:44 +0000] "GET /lib/phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:45 +0000] "GET /lib/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:46 +0000] "GET /lib/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:53 +0000] "GET /lib/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:54 +0000] "GET /laravel/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:55 +0000] "GET /www/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:57 +0000] "GET /ws/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:57 +0000] "GET /yii/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:58 +0000] "GET /zend/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:06:59 +0000] "GET /ws/ec/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:07:00 +0000] "GET /V2/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:07:08 +0000] "GET /tests/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
195.178.110.160 - - [09/Oct/2025:13:07:10 +0000] "GET /.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
117.72.49.15 - - [09/Oct/2025:13:07:10 +0000] "GET /test/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
195.178.110.160 - - [09/Oct/2025:13:07:10 +0000] "GET /.env.save HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:10 +0000] "GET /.env.prod HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:11 +0000] "GET /api/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:11 +0000] "GET /dev/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:11 +0000] "GET /application/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
117.72.49.15 - - [09/Oct/2025:13:07:11 +0000] "GET /testing/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
195.178.110.160 - - [09/Oct/2025:13:07:11 +0000] "GET /phpinfo.php HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:12 +0000] "GET /phpinfo HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:12 +0000] "GET /php_info.php HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:12 +0000] "GET /_profiler/phpinfo HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:13 +0000] "GET /backend/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:13 +0000] "GET /.env.example HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:13 +0000] "GET /admin/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:13 +0000] "GET /info HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:13:07:13 +0000] "POST / HTTP/1.1" 405 559 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
117.72.49.15 - - [09/Oct/2025:13:07:17 +0000] "GET /api/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:07:21 +0000] "GET /demo/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:07:25 +0000] "GET /cms/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:07:28 +0000] "GET /crm/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
117.72.49.15 - - [09/Oct/2025:13:07:31 +0000] "GET /admin/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 153 "-" "libredtail-http"
195.178.110.109 - - [09/Oct/2025:13:22:15 +0000] "GET / HTTP/1.1" 400 157 "-" "-"
195.178.110.109 - - [09/Oct/2025:13:22:16 +0000] "GET / HTTP/1.1" 200 5443 "-" "l9tcpid/v1.1.0"
34.135.250.220 - - [09/Oct/2025:13:34:28 +0000] "GET /media/system/js/core.js HTTP/1.1" 301 169 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
34.135.250.220 - - [09/Oct/2025:13:34:29 +0000] "GET /media/system/js/core.js HTTP/1.1" 404 187 "http://example.com/media/system/js/core.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
34.135.250.220 - - [09/Oct/2025:13:34:29 +0000] "GET /wp-includes/js/jquery/jquery.js HTTP/1.1" 301 169 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
34.135.250.220 - - [09/Oct/2025:13:34:30 +0000] "GET /wp-includes/js/jquery/jquery.js HTTP/1.1" 404 187 "http://example.com/wp-includes/js/jquery/jquery.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
34.229.161.88 - - [09/Oct/2025:13:46:51 +0000] "GET / HTTP/1.1" 301 169 "-" "Nokia7250/1.0 (3.14) Profile/MIDP-1.0 Configuration/CLDC-1.0"
34.229.161.88 - - [09/Oct/2025:13:46:51 +0000] "GET / HTTP/1.1" 200 2334 "-" "Mozilla/5.0 (Linux; Android 9; ASUS_X00TD) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Mobile Safari/537.36"
195.178.110.15 - - [09/Oct/2025:13:54:39 +0000] "\x16\x03\x01\x00\xEA\x01\x00\x00\xE6\x03\x03\xAD\x80\xC3\xD6\x8C\xC7a3\xA5\xA3m\x06\xEF\x03\xB5\xA2s\xD5\x8D\xE1\xDA\xBBDU:\x8D\xD8\xD3\xAFm-\xD9 9\xCD\xAF\xA8\xA9Fj\x8BO\xB1\x09v=\xC3\xDE\xBA\xB9\xB0c\x1B\x84K\xE5\xA5\xC8;\xC4]T\x84\x09\x05\x00&\xC0+\xC0/\xC0,\xC00\xCC\xA9\xCC\xA8\xC0\x09\xC0\x13\xC0" 400 157 "-" "-"
195.178.110.15 - - [09/Oct/2025:13:54:39 +0000] "GET / HTTP/1.1" 400 157 "-" "-"
195.178.110.15 - - [09/Oct/2025:13:54:39 +0000] "GET / HTTP/1.1" 200 615 "-" "l9tcpid/v1.1.0"
195.178.110.15 - - [09/Oct/2025:14:01:21 +0000] "\x16\x03\x01\x00\xEA\x01\x00\x00\xE6\x03\x03" 400 157 "-" "-"
195.178.110.15 - - [09/Oct/2025:14:01:21 +0000] "GET / HTTP/1.1" 400 157 "-" "-"
195.178.110.15 - - [09/Oct/2025:14:01:21 +0000] "GET / HTTP/1.1" 200 615 "-" "l9tcpid/v1.1.0"
66.249.66.194 - - [09/Oct/2025:14:02:40 +0000] "GET /robots.txt HTTP/1.1" 301 169 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.66.198 - - [09/Oct/2025:14:02:40 +0000] "GET /robots.txt HTTP/1.1" 404 125 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
195.178.110.109 - - [09/Oct/2025:14:10:39 +0000] "GET / HTTP/1.1" 400 157 "-" "-"
195.178.110.109 - - [09/Oct/2025:14:10:40 +0000] "GET / HTTP/1.1" 200 5443 "-" "l9tcpid/v1.1.0"
143.110.153.119 - - [09/Oct/2025:14:16:10 +0000] "GET / HTTP/1.1" 200 2334 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0"
143.110.153.119 - - [09/Oct/2025:14:16:15 +0000] "GET /game.icon.png HTTP/1.1" 200 55062 "https://217.12.40.150/" "Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0"
3.90.165.120 - - [09/Oct/2025:14:24:30 +0000] "GET / HTTP/1.1" 200 2334 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
3.90.165.120 - - [09/Oct/2025:14:24:30 +0000] "GET /game.png HTTP/1.1" 200 67787 "https://example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
3.90.165.120 - - [09/Oct/2025:14:24:31 +0000] "GET /game.js HTTP/1.1" 200 285305 "https://example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
3.90.165.120 - - [09/Oct/2025:14:24:32 +0000] "GET /game.icon.png HTTP/1.1" 200 55062 "https://example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
3.90.165.120 - - [09/Oct/2025:14:24:33 +0000] "GET /game.pck HTTP/1.1" 200 5024368 "https://example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
3.90.165.120 - - [09/Oct/2025:14:24:34 +0000] "GET /game.wasm HTTP/1.1" 200 52126319 "https://example.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
3.90.165.120 - - [09/Oct/2025:14:24:36 +0000] "GET /game.apple-touch-icon.png HTTP/1.1" 200 8112 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
126.209.66.90 - - [09/Oct/2025:14:28:34 +0000] "POST /xmlrpc.php HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
13.219.78.236 - - [09/Oct/2025:14:47:42 +0000] "GET / HTTP/1.1" 200 2334 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36"
13.221.72.210 - - [09/Oct/2025:14:51:41 +0000] "GET / HTTP/1.1" 200 409 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36"
185.242.226.110 - - [09/Oct/2025:14:52:13 +0000] "\x16\x03\x01\x00\x8B\x01\x00\x00\x87\x03\x03\xAB\xAB\xD1R\xAB\xB0\xB3K\xA3)\xA5\xAF\x84\xDB7!\xE6\xFB\xCD \xF3\xCAV^\xF5y\xB2\x13U-Ux\x00\x00\x1A\xC0/\xC0+\xC0\x11\xC0\x07\xC0\x13\xC0\x09\xC0\x14\xC0" 400 157 "-" "-"
195.178.110.109 - - [09/Oct/2025:14:53:55 +0000] "GET / HTTP/1.1" 400 157 "-" "-"
195.178.110.109 - - [09/Oct/2025:14:53:56 +0000] "GET / HTTP/1.1" 200 5443 "-" "l9tcpid/v1.1.0"
195.178.110.201 - - [09/Oct/2025:15:00:23 +0000] "GET /.git/objects/pack/ HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Falkon/3.0.0 Chrome/65.0.3325.230 Safari/537.36"
46.101.179.240 - - [09/Oct/2025:15:08:12 +0000] "GET /.env HTTP/1.1" 404 125 "-" "Mozilla/5.0; Keydrop.io/1.0(onlyscans.com/about);"
46.101.179.240 - - [09/Oct/2025:15:08:12 +0000] "GET /.env HTTP/1.1" 400 255 "-" "Mozilla/5.0; Keydrop.io/1.0(onlyscans.com/about);"
46.101.179.240 - - [09/Oct/2025:15:08:12 +0000] "GET /.git/config HTTP/1.1" 404 125 "-" "Mozilla/5.0; Keydrop.io/1.0(onlyscans.com/about);"
46.101.179.240 - - [09/Oct/2025:15:08:13 +0000] "GET /.git/config HTTP/1.1" 400 255 "-" "Mozilla/5.0; Keydrop.io/1.0(onlyscans.com/about);"
195.178.110.160 - - [09/Oct/2025:15:08:45 +0000] "GET /.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:45 +0000] "GET /.env.save HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:45 +0000] "GET /.env.prod HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:45 +0000] "GET /api/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:46 +0000] "GET /dev/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:46 +0000] "GET /application/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:46 +0000] "GET /phpinfo.php HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:47 +0000] "GET /phpinfo HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:47 +0000] "GET /php_info.php HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:47 +0000] "GET /_profiler/phpinfo HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:47 +0000] "GET /backend/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:48 +0000] "GET /.env.example HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:48 +0000] "GET /admin/.env HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:48 +0000] "GET /info HTTP/1.1" 404 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
195.178.110.160 - - [09/Oct/2025:15:08:49 +0000] "POST / HTTP/1.1" 405 559 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
34.240.40.55 - - [09/Oct/2025:15:19:22 +0000] "GET / HTTP/1.0" 301 169 "-" "Mozilla/5.0 (compatible; NetcraftSurveyAgent/1.0; +info@netcraft.com)"
34.240.40.55 - - [09/Oct/2025:15:19:25 +0000] "GET / HTTP/1.0" 200 5443 "-" "Mozilla/5.0 (compatible; NetcraftSurveyAgent/1.0; +info@netcraft.com)"
118.106.106.68 - - [09/Oct/2025:16:01:43 +0000] "GET / HTTP/1.1" 200 2334 "-" "python-requests/2.32.3"
118.106.106.68 - - [09/Oct/2025:16:01:44 +0000] "GET / HTTP/1.1" 400 255 "-" "python-requests/2.32.3"
118.106.106.68 - - [09/Oct/2025:16:01:46 +0000] "GET /login HTTP/1.1" 404 125 "-" "python-requests/2.32.3"
204.76.203.219 - - [09/Oct/2025:16:06:10 +0000] "GET / HTTP/1.1" 200 409 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"
82.156.68.74 - - [09/Oct/2025:16:06:50 +0000] "GET / HTTP/1.1" 301 169 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"
82.156.68.74 - - [09/Oct/2025:16:06:51 +0000] "GET / HTTP/1.1" 200 2334 "http://example.com" "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"
103.153.78.242 - - [09/Oct/2025:16:13:00 +0000] "GET /.env HTTP/1.1" 404 125 "-" "Mozilla/5.0 (Linux; U; Android 4.4.2; en-US; HM NOTE 1W Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/11.0.5.850 U3/0.8.0 Mobile Safari/534.30"
103.153.78.242 - - [09/Oct/2025:16:13:01 +0000] "POST / HTTP/1.1" 405 157 "-" "Mozilla/5.0 (Linux; U; Android 4.4.2; en-US; HM NOTE 1W Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/11.0.5.850 U3/0.8.0 Mobile Safari/534.30"
103.153.78.242 - - [09/Oct/2025:16:13:02 +0000] "GET /.env HTTP/1.1" 404 125 "-" "Mozilla/5.0 (Linux; U; Android 4.4.2; en-US; HM NOTE 1W Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/11.0.5.850 U3/0.8.0 Mobile Safari/534.30"
103.153.78.242 - - [09/Oct/2025:16:13:03 +0000] "POST / HTTP/1.1" 405 157 "-" "Mozilla/5.0 (Linux; U; Android 4.4.2; en-US; HM NOTE 1W Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/11.0.5.850 U3/0.8.0 Mobile Safari/534.30"
103.153.78.242 - - [09/Oct/2025:16:13:05 +0000] "GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 125 "-" "python-requests/2.25.1"

And the error.log log:

2025/10/09 03:47:01 [crit] 130989#130989: *16955 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 20.169.81.111, server: 0.0.0.0:443
2025/10/09 05:01:26 [crit] 130989#130989: *17002 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 93.123.109.214, server: 0.0.0.0:443
2025/10/09 05:38:58 [crit] 130989#130989: *17024 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 104.248.130.34, server: 0.0.0.0:443
2025/10/09 06:09:01 [crit] 130989#130989: *17038 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 195.178.110.15, server: 0.0.0.0:443
2025/10/09 06:23:30 [crit] 130989#130989: *17062 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 93.123.109.214, server: 0.0.0.0:443
2025/10/09 07:14:30 [crit] 130989#130989: *17091 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 185.242.226.16, server: 0.0.0.0:443
2025/10/09 08:26:44 [crit] 130989#130989: *17130 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 195.178.110.109, server: 0.0.0.0:443
2025/10/09 09:10:10 [crit] 130989#130989: *17150 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 195.178.110.15, server: 0.0.0.0:443
2025/10/09 09:32:47 [crit] 130989#130989: *17172 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 134.209.252.240, server: 0.0.0.0:443
2025/10/09 11:39:57 [crit] 130989#130989: *17203 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 93.123.109.214, server: 0.0.0.0:443
2025/10/09 11:50:48 [crit] 130989#130989: *17215 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 195.178.110.15, server: 0.0.0.0:443
2025/10/09 13:22:16 [crit] 130989#130989: *17266 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 195.178.110.109, server: 0.0.0.0:443
2025/10/09 14:10:40 [crit] 130989#130989: *17293 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 195.178.110.109, server: 0.0.0.0:443
2025/10/09 14:16:14 [crit] 130989#130989: *17305 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 143.110.153.119, server: 0.0.0.0:443
2025/10/09 14:53:56 [crit] 130989#130989: *17328 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 195.178.110.109, server: 0.0.0.0:443

Okay, so none of this really explains the actual Godot errors (I think), but I am no expert.

However, there seems to be some issue with your ssl certs (hence the failed handshake messages in the error.log), and your queries to your php endpoints seem to be using some wrong paths (hence the 404 status code in the access.log). You don’t seem to be configuring PHP at all in your NGINX config, so I have to assume that’s either an issue with your HTML site or the underlying Godot/WebSocketPeer implementation. I have encountered some scenarios in Node where upon compilation the file paths get tweaked/modified resulting in various errors. Maybe this is something similar?

As an extra FYI, if you are using PHP behind the scenes (seems like either you or the Godot engine is) you might want to look into the fastcgi module.

I don’t know that I’ll be able to help much further than this, but good luck! Maybe someone else will have some other suggestions!

Thanks, @alessandro!

I’m grateful for your help :handshake:

I will think about it :thinking:. If I will fix it - I will let you know :man_mechanic:

1 Like