Error handling for callback usage

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
nodejs, typescript
Domain
api

Research direction

Start by locating the getJson and getHtml entry points and their callback handling. Determine how callback callers should receive errors, then verify that both methods expose errors consistently when requests fail.

Written by the indexing model from the issue text.

Description

When calling getJson or getHtml with callback instead of async/await, there's no way to handle errors.

Dominant language
TypeScript
Stars
95
Forks
33
Avg merge
8d 12h
Merged PRs (30d)
2

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.

More from serpapi/serpapi-javascript

All issues in serpapi/serpapi-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.