#(Business urgent) Conversational AI Websocket 1008 error Expo / React Native

1 messages · Page 1 of 1 (latest)

bronze urchin
#

Hello I am trying to implement the conversational ai websocket in my react native application since there is no any SDK implemented.

But I have this error everytime :
OBRIDGE) LOG [WS] Processing agent response: Hi, I'm Eric. How can I help you today?
(NOBRIDGE) LOG [WS] Message received: {"id": "1740006091821", "rawData": "{"ping_event":{"event_id":2,"ping_ms":null},"type":"ping"}...", "size": 58, "timestamp": "2025-02-19T23:01:31.821Z"}
(NOBRIDGE) LOG [WS] Processing message: {"hasAgentResponse": false, "hasAudioEvent": false, "hasPingEvent": true, "id": "1740006091821", "size": 58, "timestamp": "2025-02-19T23:01:31.821Z", "type": "ping"}
(NOBRIDGE) LOG [WS] Processing ping event: {"eventId": 2, "id": "1740006091821", "pingMs": null, "size": 58, "timestamp": "2025-02-19T23:01:31.821Z"}
(NOBRIDGE) LOG [WS] Sending pong for event: 2
(NOBRIDGE) LOG [WS] Connection closed: {"code": 1008, "reason": null, "timestamp": "2025-02-19T23:01:31.945Z", "wasClean": undefined}

How to solve it ? Cheers,
Alexis.

bronze urchin
#

(Business urgent) Conversational AI Websocket 1008 error Expo / React Native

idle jasper
#

https://status.elevenlabs.io/

There was some instability last night around this time, 1008 can be a few things but given the time frame this is my guess. The issue has now been resolved but was only present for about an hour..

bronze urchin
# idle jasper https://status.elevenlabs.io/ There was some instability last night around this...

Still the same issue at the moment :

response"}
(NOBRIDGE) LOG [WS] Processing agent response: {"id": "1740042330104", "responseLength": 39, "size": 109, "timestamp": "2025-02-20T09:05:30.104Z"}
(NOBRIDGE) LOG [WS] Processing agent response: Hi, I'm Eric. How can I help you today?
(NOBRIDGE) LOG [WS] Message received: {"id": "1740042331689", "rawData": "{"ping_event":{"event_id":2,"ping_ms":null},"type":"ping"}...", "size": 58, "timestamp": "2025-02-20T09:05:31.689Z"}
(NOBRIDGE) LOG [WS] Processing message: {"hasAgentResponse": false, "hasAudioEvent": false, "hasPingEvent": true, "id": "1740042331689", "size": 58, "timestamp": "2025-02-20T09:05:31.689Z", "type": "ping"}
(NOBRIDGE) LOG [WS] Processing ping event: {"eventId": 2, "id": "1740042331689", "pingMs": null, "size": 58, "timestamp": "2025-02-20T09:05:31.689Z"}
(NOBRIDGE) LOG [WS] Sending pong for event: 2
** (NOBRIDGE) LOG [WS] Connection closed: {"code": 1008, "reason": "No reason provided", "reconnectAttempts": 0, "timestamp": "2025-02-20T09:05:31.812Z", "wasClean": undefined}
(NOBRIDGE) ERROR [WS] Policy violation: {"code": 1008, "reason": "No reason provided", "reconnectAttempts": 0, "timestamp": "2025-02-20T09:05:31.812Z", "wasClean": undefined}**
(NOBRIDGE) LOG [WS] Scheduling reconnect in 4500 ms

idle jasper
bronze urchin
#

(Oh I have alr unchecked the flash mode)

idle jasper
#

Agent > tts

bronze urchin
#

(NOBRIDGE) LOG [WS] Processing message: {"hasAgentResponse": false, "hasAudioEvent": false, "hasPingEvent": false, "id": "1740069536059", "size": 205, "timestamp": "2025-02-20T163856.059Z", "type": "conversation_initiation_metadata"}
(NOBRIDGE) LOG [WS] Received conversation metadata: {"agentOutputFormat": "pcm_16000", "conversationId": "LYvZ2T2KURhjJKbR9yFt", "id": "1740069536059", "size": 205, "timestamp": "2025-02-20T163856.059Z", "userInputFormat": "pcm_16000"}
(NOBRIDGE) LOG [WS] Connecting to: wss://api.elevenlabs.io/v1/convai/conversation?agent_id=Z8Dz4QF4r3vqEcCNK8g3 {"isRetry": false, "reconnectAttempts": 0, "reconnectDelay": 3000}
(NOBRIDGE) ERROR Error sending audio chunk: [Error: INVALID_STATE_ERR]
(NOBRIDGE) LOG [WS] Connection closed: {"code": 1000, "reason": "Component unmounting", "reconnectAttempts": 1, "timestamp": "2025-02-20T163856.187Z", "wasClean": undefined}
(NOBRIDGE) LOG [WS] Scheduling reconnect in 3000 ms
(NOBRIDGE) LOG [WS] Connected successfully {"protocol": "", "readyState": 1, "reconnectAttempts": 0, "url": "wss://api.elevenlabs.io/v1/convai/conversation?agent_id=Z8Dz4QF4r3vqEcCNK8g3"}
(NOBRIDGE) LOG [WS] Initiali

I have now 1002 error and 1000

bronze urchin
# idle jasper

The agent is already created, it's Eric (support template) with no Flash model checked

idle jasper
#

Do you have any tools?

bronze urchin
#

What do you mean by tools ?

#

It's still deconnecting, reconnecting, it uses all of my 11labs credits

idle jasper
#

Just wait a little while

#

Other people are also reporting issues..

bronze urchin
#

Oh.. just saw that