miney-py / mineysocket

A network api for minetest
GNU Lesser General Public License v3.0
14 stars 9 forks source link

Authentification errors after connection #3

Closed Netzvamp closed 3 years ago

Netzvamp commented 3 years ago

Just for reference of a non critical error, that will be investigated:

Just after connection this can happen.

$ nc 127.0.0.1 29999
(press Enter)
{"error":"JSON decode error - Expected value but found T_END at character 2"}
{"playername": "someplayer", "password": "somepassword"}
{"error":"authentication error"}

Instead, this works:

echo '{"playername": "someplayer", "password": "somepassword"}' | nc 127.0.0.1 29999