Skip to main content

Type Alias: GuardedFetchReason

GuardedFetchReason = "address" | "scheme" | "port" | "redirects" | "status" | "type" | "size" | "deadline" | "network"

Defined in: packages/agentos/src/cognition/memory/io/ingestion/guardedFetch.ts:41

Why a fetch was refused or stopped:

  • 'address': the host, or a redirect's host, resolves to an address that is not public.
  • 'scheme': not an http: or https: address, not an address at all, or one with a user name or password.
  • 'port': a port the caller does not allow.
  • 'redirects': more redirects than maxRedirects.
  • 'status': an answer other than 2xx, a redirect without an address, or a protocol upgrade.
  • 'type': a media type the caller does not accept, or a body in a coding the request did not ask for.
  • 'size': a body past maxBytes, as it arrives or after decoding.
  • 'deadline': the read took longer than deadlineMs.
  • 'network': the host has no address, the lookup, the connection or the read failed, or the network's NAT64 prefixes could not be read for a host with an IPv6 address.