MCPcopy Create free account
hub / github.com/Noumena-Network/code / parseErrorBody

Function parseErrorBody

src/services/api/webSearch.ts:21–28  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

19}
20
21async function parseErrorBody(response: Response): Promise<string> {
22 try {
23 const text = await response.text()
24 return text.trim()
25 } catch {
26 return ''
27 }
28}
29
30export function getNoumenaWebSearchBaseUrl(): string {
31 return (

Callers 1

Calls 1

textMethod · 0.45

Tested by

no test coverage detected