diegosouzapw/OmniRoute · error · Error
Recorded GitHub export must include html_url or url
Error message
Recorded GitHub export must include html_url or url
What it means
normalizeGitHubIssueExport(): the recorded export's issue object has neither html_url nor url, so the issue's canonical browser URL cannot be derived. Indicates a malformed/truncated GitHub export payload.
Solutions
- Re-export the issue including html_url from GitHub
- Regenerate the recording from the GitHub API which always returns html_url
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/issueAgent/githubExport.ts:40 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/640eb3192f074237.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/issueAgent/githubExport.ts:40
function normalizeComment(value: unknown): RecordedTriageComment {
const row = asRecord(value);
const user = asRecord(row.user);
const author = readString(row.author) ?? readString(row.user_login) ?? readString(user.login);
const body = readString(row.body) ?? "";
const explicitBot = typeof row.isBot === "boolean" ? row.isBot : undefined;
return {
author,
body,
isBot: explicitBot ?? isBotUser(user, author),
};
}
export function normalizeGitHubIssueExport(value: unknown): NormalizedGitHubIssueExport {
const root = asRecord(value);
const issue = asRecord(root.issue ?? root.pull_request ?? root.pr ?? root);
const issueUrl = readString(issue.html_url) ?? readString(issue.url) ?? readString(root.html_url) ?? readString(root.url);
if (!issueUrl) {
throw new Error("Recorded GitHub export must include html_url or url");
}
const rawComments = Array.isArray(root.comments)
? root.comments
: Array.isArray(issue.comments)
? issue.comments
: [];
return {
issueUrl,
recordedContext: {
title: readString(issue.title),
body: readString(issue.body),
comments: rawComments.slice(0, 100).map(normalizeComment),
},
};
}
View on GitHub (pinned to a179ffed5b)