typegoose / typegoose/mongodb-memory-server

Update Error messages for failed downloads

Open
#720 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2.8k
Forks
191
Avg merge
4h 25m
Merged PRs (30d)
10

Description

Currently the Errors for failed downloads are not very helpful, like:

https://github.com/nodkz/mongodb-memory-server/blob/2d46099b857421d2fd7737a4328ed9146cce2a90/packages/mongodb-memory-server-core/src/util/MongoBinaryDownload.ts#L434

it only says that the code is not 200, but not which code it actually was.
there are also some other errors thrown for failed downloaded which should also be handled better

Contributor guide

Open the contributing guide

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.

Research direction

Start in packages/mongodb-memory-server-core/src/util/MongoBinaryDownload.ts at the linked line, then locate the other errors raised for failed downloads. Improve the messages so failures report the relevant response details, including the actual status code, and verify that all identified download failure paths are covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.