Skip to content

Server crashes when attempting to create account via client (Connection timeout / enet.js error) #1

@muhammadGagah

Description

@muhammadGagah

I followed the setup instructions but encountered errors when trying to create an account from the client.
The server starts on port 13000, but crashes shortly after, and the client shows a connection timeout.


Steps to Reproduce

  1. Clone this repository:
git clone https://github.com/lower-elements/final-hour-server-public/
cd final-hour-server-public
  1. Uncomment the following lines in /libs/consts.ts:
//DISCORD_TOKEN:
//"discord app secret goes here",
  1. Run the server in development mode:
    docker compose -f compose.dev.yml up --build
  2. The server runs on port 13000.
  3. Attempt to create a new account via the client.

Observed Behavior

  • On the client:
    Connection error [timeout]
  • On the server console:
final-hour-1  | [nodemon] files triggering change check: database.sqlite3-journal
final-hour-1  | [nodemon] changes after filters (before/after): 1/0
final-hour-1  | [nodemon] files triggering change check: database.sqlite3
final-hour-1  | [nodemon] changes after filters (before/after): 1/0
final-hour-1  | /home/node/node_modules/enet/build/enet.js:9
final-hour-1  | [nodemon] app crashed - waiting for file changes before starting

Expected Behavior

The client should be able to create an account successfully without the server crashing.

Question

Am I missing any configuration steps (e.g., database setup, environment variables, or required migrations) before running the development server?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions