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

Internal server error #269

Open
programarivm opened this issue Apr 9, 2024 · 0 comments
Open

Internal server error #269

programarivm opened this issue Apr 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@programarivm
Copy link
Member

After inspecting the log file, an "Expired token" error seems to occur rather frequently which may well be the cause of the "Internal server error" as per the screenshot attached.

[2024-04-08T21:27:34.540811+00:00] log.INFO: Sent message {"id":1820,"cmd":{"error":"Internal server error"}} []
[2024-04-08T21:27:50.528616+00:00] log.ERROR: Occurred an error {"message":"Expired token","file":"/usr/share/chess-server/vendor/firebase/php-jwt/src/JWT.php","line":176,"trace":"#0 /usr/share/chess-server/src/Game/PlayMode.php(49): Firebase\\JWT\\JWT::decode()\n#1 /usr/share/chess-server/src/Game/GameModeStorage.php(40): ChessServer\\Game\\PlayMode->getJwtDecoded()\n#2 /usr/share/chess-server/src/Command/StartCommand.php(288): ChessServer\\Game\\GameModeStorage->decodeByPlayMode()\n#3 /usr/share/chess-server/src/Socket/WorkermanWebSocket.php(60): ChessServer\\Command\\StartCommand->run()\n#4 /usr/share/chess-server/vendor/workerman/workerman/Connection/TcpConnection.php(646): ChessServer\\Socket\\WorkermanWebSocket->ChessServer\\Socket\\{closure}()\n#5 /usr/share/chess-server/vendor/workerman/workerman/Events/Select.php(311): Workerman\\Connection\\TcpConnection->baseRead()\n#6 /usr/share/chess-server/vendor/workerman/workerman/Worker.php(1638): Workerman\\Events\\Select->loop()\n#7 /usr/share/chess-server/vendor/workerman/workerman/Worker.php(1429): Workerman\\Worker::forkOneWorkerForLinux()\n#8 /usr/share/chess-server/vendor/workerman/workerman/Worker.php(1403): Workerman\\Worker::forkWorkersForLinux()\n#9 /usr/share/chess-server/vendor/workerman/workerman/Worker.php(560): Workerman\\Worker::forkWorkers()\n#10 /usr/share/chess-server/src/Socket/WorkermanWebSocket.php(113): Workerman\\Worker::runAll()\n#11 /usr/share/chess-server/cli/workerman/wss.php(33): ChessServer\\Socket\\WorkermanWebSocket->run()\n#12 {main}"} []

Screenshot 2024-04-09 09:40:45

@programarivm programarivm added the bug Something isn't working label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant