Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Server.listen() - Async

Open
#38 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
backend

Research direction

Start by inspecting src/server.js lines 9-11 and review the Node.js Server.listen() documentation linked in the issue. Ensure the console.log runs only after the server is listening, then verify the startup behavior manually.

Written by the indexing model from the issue text.

Description

refactoring

Keep in mind that Server.listen() is an async function. When you are using it below, there is a risk your console.log will run before the server is actually up and running.

https://github.com/fac-14/Week4TakingAIME/blob/master/src/server.js#L9-L11

Consider popping your console.log into a callback :)

You can read more about Server.listen() parameters here:
https://nodejs.org/api/net.html#net_server_listen

Dominant language
JavaScript
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fac-14/Week4TakingAIME

All issues in fac-14/Week4TakingAIME

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.