PipecatClient
error type, extends Error
and primarily introducing the status
field. Most methods will try to throw an error of this type when something goes wrong.
connect()
method call.
connect()
method is called with an endpoint, and 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.