Skip to main content

Function: imageUrlRefusalDetail()

imageUrlRefusalDetail(error): ImageUrlRefusalDetail | undefined

Defined in: packages/agentos/src/io/media/images/untrustedImageFetch.ts:110

The detail of a refusal that fetchUntrustedImage threw, for a log: which address a host name resolved to, or why it did not resolve. It is not a property of the error, so code that prints or serializes the error for whoever sent the URL (util.inspect shows an error's cause) does not hand it over. undefined for any other value.

Parameters​

error​

unknown

Returns​

ImageUrlRefusalDetail | undefined