vercel / vercel/examples

BotD example: TypeError: fetch failed

Open
#370 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.2k
Forks
1.8k
Avg merge
3d 12h
Merged PRs (30d)
6

Description

Example: https://github.com/vercel/examples/tree/main/edge-functions/bot-protection-botd

When running the bot check the, middleware reports an error and does not perform a check:

Botd failed with: { [TypeError: fetch failed]
  cause: [TypeError: define_process_default.nextTick is not a function] }

Contributor guide

No contributing guide indexed for this repository

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 with the edge-functions/bot-protection-botd example and run its middleware bot check to reproduce the reported TypeError. Inspect the middleware entry point and the runtime behavior around the failed fetch; the work is done when the BotD check completes without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
backend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.