Frontmatter
| id | 9131 |
| title | Fix Spider Bio-Signal Search Query 422 Error |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Feb 13, 2026, 2:29 AM |
| updatedAt | Feb 13, 2026, 2:36 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9131 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 9106 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 13, 2026, 2:36 AM |
Fix Spider Bio-Signal Search Query 422 Error
tobiu assigned to @tobiu on Feb 13, 2026, 2:29 AM
tobiu added parent issue #9106 on Feb 13, 2026, 2:29 AM

tobiu
Feb 13, 2026, 2:35 AM
Input from Gemini 3 Pro:
✦ I have fixed the 422 Unprocessable Entity error in the Spider's "Bio Signals" strategy.
The Fix:
- Removed
encodeURIComponent: InSpider.mjs,runSearchwas modified to pass the query string directly toGitHub.restwithout double-encoding.- Simplified Query: I replaced the
topic:a OR topic:bpattern with a directa OR bkeyword search (e.g.,women-in-tech OR pyladies). My verification usinggh apiconfirmed that:
topic:a OR topic:breturns a 422 error.a OR bworks correctly and returns thousands of relevant results (3185 for this specific case).This approach ensures the query is valid and successfully retrieves the desired diversity-focused repositories.
tobiu closed this issue on Feb 13, 2026, 2:36 AM
The Spider's "Bio Signals" discovery strategy fails with a
422 Unprocessable Entityerror when executing the search query.Error:
Cause: The query string construction in
Spider.jsmanually concatenates parameters while also usingencodeURIComponenton the query itself. However, theGitHub.jsservice also expects a clean endpoint. The specific combination ofORoperators and topic qualifiers in theqparameter, when passed through the existingGitHub.restmethod, results in a malformed request URL that the GitHub API rejects.Fix: Refactor
Spider.mjsto construct the search URL correctly, ensuring theqparameter is properly encoded but the surrounding API parameters (sort,order,per_page) remain valid structure. We should likely verify ifGitHub.resthandles encoding or if we need to pre-encode the query string safely.Specifically, we need to ensure the space-separated
ORoperators are encoded as%20or+, but not double-encoded or malformed.