Skip to content

Fix: DevRank Spider 422 Error on Complex Queries #9103

@tobiu

Description

@tobiu

The DevRank Spider fails with REST Error: 422 Unprocessable Entity when running the "Bio Signals" strategy. This is because the search query string containing spaces and operators (OR) is not URL-encoded before being passed to the GitHub API.

To Reproduce:

  1. Run node apps/devrank/services/cli.mjs spider
  2. Select "Discovery: Bio Signals" (or wait for it to be picked randomly)
  3. Observe crash.

Proposed Fix:
Use encodeURIComponent() on the query string in apps/devrank/services/Spider.mjs.

Metadata

Metadata

Assignees

Labels

aibugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions