MCPcopy Create free account
hub / github.com/Effect-TS/effect / protocolDefect

Function protocolDefect

packages/effect/src/unstable/rpc/RpcClient.ts:888–891  ·  view source on GitHub ↗
(message: string, cause: unknown)

Source from the content-addressed store, hash-verified

886 reason: HttpClientErrorSchema.fromHttpClientError(cause)
887 })
888 const protocolDefect = (message: string, cause: unknown) =>
889 new RpcClientError({
890 reason: new RpcClientDefect({ message, cause })
891 })
892 const emptyResponseError = (request: FromClientEncoded) =>
893 protocolDefect("Received empty HTTP response from RPC server", request)
894 const incompleteResponseError = (request: FromClientEncoded) =>

Callers 3

emptyResponseErrorFunction · 0.85
incompleteResponseErrorFunction · 0.85
makeProtocolHttpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected