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

Do not warn for requests aborted by the caller

Open Beginner friendly
#374 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
86/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
api

Research direction

Start in src/Typesense/ApiCall.ts, focusing on ApiCall.performRequest() and its catch block. Reproduce the abortSignal search scenario, then verify that caller-initiated aborts reject as "Request aborted by caller." without a warning, while network failures and other request errors still warn.

Written by the indexing model from the issue text.

Description

Description

When a caller aborts an in-flight request using abortSignal, ApiCall emits a warning such as:

Request #…: Request to Node 0 failed due to "ERR_CANCELED canceled"

The request then rejects with Request aborted by caller., as expected. A caller-initiated abort is routine when replacing an in-flight search (for example, while someone types), so this warning adds noise to browser logs.

Steps to reproduce

  1. Create a SearchClient and start a search against a server that keeps the request pending.
  2. Pass an AbortController signal as the search option: client.collections('example').documents().search({ q: '*' }, { abortSignal: controller.signal }).
  3. After the server receives the request, call controller.abort().

Expected behavior

The search rejects as aborted, without logging a failure warning. Network failures and other genuine request errors should still warn.

Actual behavior

ApiCall.performRequest() sets wasAborted when the signal fires, but its catch block calls logger.warn(...) before checking wasAborted and returning Request aborted by caller.. Could the warning be skipped when wasAborted is true?

This occurs with typesense-js 2.1.0 and the same logging order appears in 3.1.0:

Dominant language
TypeScript
Stars
572
Forks
101
Avg merge
12h 10m
Merged PRs (30d)
4

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 typesense/typesense-js

All issues in typesense/typesense-js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.