PipecatClient
error type, extends Error
and primarily introduces the status
field. Most methods will try to throw an error of this type when something goes wrong. This is different from the RTVI error event and its corresponding onError
callback, which are used for communicating errors that are sent by the bot.
connect()
method call.
startBot()
or startBotAndConnect()
when the endpoint responds with an error or the fetch
itself fails. This may be due to the endpoint being unavailable, or the server failing to parse the provided data.
StartBotError
instances will have an error
field set to invalid-request-error
.info
field containing the error message.connect()
first and wait for the bot to be ready before performing such actions.
'cam'
, 'mic'
, and/or 'speaker'
, that are unavailable or could not be accessed.type
field will indicate what type of device error occurred. Options include:"in-use"
: A device is currently in use by another application and cannot be accessed. windows only"permissions"
: The user has not granted permission to access the media device."undefined-mediadevices"
: getUserMedia()
is not an available API on the current platform or browser."not-found"
: The specified media device could not be found."constraints"
: The media device could not be configured with the specified constraints."unknown"
: An unknown error occurred while accessing the media device.