HttpError
Defined in: sdk/js/src/api.ts:109
Why http.fetch failed (not-granted, refused-address, invalid-url, timeout, …).
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HttpError(
kind,detail?):HttpError
Defined in: sdk/js/src/api.ts:110
Parameters
Section titled “Parameters”string
detail?
Section titled “detail?”string
Returns
Section titled “Returns”HttpError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”
readonlycode:string
Defined in: sdk/js/src/errors.ts:8
The protocol error code, or a runtime code such as NOT_GRANTED.
Inherited from
Section titled “Inherited from”detail
Section titled “detail”
readonlydetail:string
Defined in: sdk/js/src/errors.ts:10
The reason or field the host gave.
Inherited from
Section titled “Inherited from”
readonlykind:string
Defined in: sdk/js/src/api.ts:110
retryAfterMs
Section titled “retryAfterMs”
readonlyretryAfterMs:number
Defined in: sdk/js/src/errors.ts:12
For RATE_LIMITED and BUSY: when to try again, in ms.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”isUnsupported()
Section titled “isUnsupported()”isUnsupported():
boolean
Defined in: sdk/js/src/errors.ts:27
Whether the host does not implement this call (or this case of it) yet: an older host, or a feature it lacks, such as volume without an Opus encoder. Fall back to what the bot did before; trying again will not help.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”from()
Section titled “from()”
staticfrom(e):ZaunError
Defined in: sdk/js/src/errors.ts:32
From the WIT host-error.
Parameters
Section titled “Parameters”HostError