{"uid":"cap__jzf94IZpLtEP6lMNw4fg","slug":"aayat-ai-error-explainer-f39c86bb","name":"Aayat AI Error Explainer","description":"Explain and fix an error: finds matching GitHub issues and Stack Overflow questions (like /error/known), reads the top accepted answers in full, then writes the likely cause and concrete fix steps citing those sources, and says plainly when nothing matching was found. Paste the error (stack traces fine) and optionally the library.","url":"https://aayatai.com/error/explain?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["message"],"properties":{"library":{"type":"string","maxLength":214,"description":"The package the error comes from, to search its own issues first."},"message":{"type":"string","maxLength":4000,"minLength":5,"description":"The error message (a stack trace is fine; paths and line numbers are stripped)."},"ecosystem":{"enum":["npm","pypi","crates","go"],"type":"string","default":"npm","description":"Package ecosystem: npm, pypi, crates (Rust) or go (Go modules)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["query","known","summary","matches","sources","explanation"],"properties":{"known":{"type":"boolean"},"query":{"type":"string","description":"The cleaned-up phrase that was searched."},"trust":{"type":"object","description":"Third-party text, cleaned: read trust.notice; removed = what we stripped."},"library":{"type":["string","null"]},"matches":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"score":{"type":"integer"},"title":{"type":"string"},"source":{"enum":["github-issue","stackoverflow"],"type":"string"},"status":{"type":"string","description":"open / closed / accepted answer / answered / unanswered."},"answers":{"type":["integer","null"]},"excerpt":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"relevance":{"type":"number","description":"Share of the error's words found in the match (0-1)."}}},"description":"Best matches first."},"sources":{"type":"array","items":{"type":"object"}},"summary":{"type":"string"},"checkedAt":{"type":"string"},"repository":{"type":["string","null"]},"explanation":{"type":"string","description":"Markdown: likely cause and fix, citing matches as [n]."}}}}}}},"responseSchema":{"type":"json","example":{"known":true,"query":"Error: Cannot find module 'hono/cors'","library":"hono","matches":[{"url":"https://github.com/honojs/hono/issues/1","score":12,"title":"Cannot find module 'hono/cors' with moduleResolution node","source":"github-issue","status":"closed","answers":8,"excerpt":"Set moduleResolution to bundler...","createdAt":"2026-01-01T00:00:00Z","relevance":1}],"sources":[{"ok":true,"name":"github-issues","count":1},{"ok":true,"name":"stackoverflow","count":1}],"summary":"2 similar report(s); 1 solved (closed issue or accepted answer).","checkedAt":"2026-09-28T12:00:00.000Z","repository":"https://github.com/honojs/hono","explanation":"## Likely cause\nYour TypeScript moduleResolution can't read package exports [1].\n\n## Fix\n1. Set \"moduleResolution\": \"bundler\" [1]."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QCUHgdrLMyw7V2XyUFf1x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches GitHub issues and Stack Overflow for matching error reports, reads top answers, and returns a cited explanation with likely cause and concrete fix steps.","exampleAgentPrompt":"I'm getting 'Error: Cannot find module \"hono/cors\"' in my TypeScript project — can you search GitHub issues and Stack Overflow for what's causing it and give me specific steps to fix it? The library is hono and the ecosystem is npm.","exampleUseCases":[{"title":"Diagnosing a TypeScript module resolution error","prompt":"I keep getting 'TypeError: Cannot read properties of undefined (reading map)' in my React app using the axios library on npm — can you find matching GitHub issues or Stack Overflow answers and explain what's likely causing it and how to fix it?"},{"title":"Fixing a Python pip install failure","prompt":"I'm seeing this error when installing a package: 'ERROR: Could not find a version that satisfies the requirement torch==2.1.0' — the library is torch and the ecosystem is pypi. What are the known causes and how do I fix it?"},{"title":"Resolving a Rust compilation error","prompt":"My Rust build is failing with 'error[E0502]: cannot borrow x as mutable because it is also borrowed as immutable' — the library is tokio and ecosystem is crates. Search GitHub and Stack Overflow and tell me what's going wrong and how to resolve it."}],"resultDescription":"A JSON object containing: a boolean indicating whether the error is known, the cleaned search query used, matched GitHub issues and Stack Overflow questions with titles, URLs, relevance scores, status, and excerpts, a summary of how many matches were found and solved, and a Markdown explanation with likely cause and numbered fix steps citing the matched sources.","failureModes":["No matching issues or answers found — endpoint returns known:false and says so plainly","Error message too short (under 5 characters) — rejected by schema validation","Error message too long (over 4000 characters) — rejected by schema validation","Unsupported ecosystem value — only npm, pypi, crates, go are accepted","GitHub or Stack Overflow APIs unavailable — sources array may show ok:false for affected sources","Highly unique or internal error with no public matches — returns empty matches array"],"whenToPreferThis":"Choose this endpoint when you need a grounded, source-cited explanation for a specific error message or stack trace, especially for popular open-source libraries across npm, pypi, Rust (crates), or Go ecosystems. It is preferable over generic LLM completions when you want answers backed by real GitHub issues and Stack Overflow accepted answers rather than hallucinated fixes. Best for errors in well-known libraries with public issue trackers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:42:17.179Z","isFirstParty":false,"canonicalSlug":"aayat-ai-error-explainer-f39c86bb"}