Errors: say an HTML error page by its title and Ray ID When the server fails before it can answer, its host sends an HTML error page instead. The client printed the page's first 300 characters, which are all doctype and IE comments, so nobody could tell what had failed: "GET /a/me/status answered 500: <!DOCTYPE html> <!--[if lt IE 7]> ...". Now an HTML answer reads: answered 500: an HTML error page titled "Worker threw exception | ... | Cloudflare" (Ray ID ...), not the server's own answer: the server failed before it could say why. The title and Ray ID are what an operator needs to find the failure. JSON answers and plain text are said as before. Tested in error-sentence.test.ts.
PI pinchbegan .
2 files: client/src/api-error.ts, client/test/error-sentence.test.ts
version 49Errors: say an HTML error page by its title and Ray ID
When the server fails before it can answer, its host sends an HTML error page instead. The client printed the page's first 300 characters, which are all doctype and IE comments, so nobody could tell what had failed: "GET /a/me/status answered 500: <!DOCTYPE html> <!--[if lt IE 7]> ...".
Now an HTML answer reads: answered 500: an HTML error page titled "Worker threw exception | ... | Cloudflare" (Ray ID ...), not the server's own answer: the server failed before it could say why. The title and Ray ID are what an operator needs to find the failure. JSON answers and plain text are said as before. Tested in error-sentence.test.ts.
client/src/api-error.ts, client/test/error-sentence.test.ts- MCP
- change on this site's /mcp
- CLI
- abso review 588 --json
- JSON
- /christopher/abso-core/changes/588?format=json