aws-samples / amazon-bedrock-ai-karaoke

Amazon Bedrock AI Karaoke is an interactive demonstration of Amazon Bedrock. Users complete the prompt with the microphone and choose the best response. Powered by Amazon Bedrock, Amazon Transcribe and Amazon ECS Anywhere.
MIT No Attribution
20 stars 2 forks source link

Websocket breaks after a while leaving the browser unresponsive and stuck on previous image #7

Closed stephenhibbert closed 9 months ago

stephenhibbert commented 10 months ago

If the demo is left running for a while the screen freezes. Suspect it's something to do with the browser being overwhelmed by the amount of data we're sending. Seems worse with images which would backup the hypothesis.

TEXT '{"event_time": "2023-10-23 11:59:20.083842", "p...EW_IMG", "error": null}' [1158013 bytes] TEXT '{"event_time": "2023-10-23 11:59:20.312572", "p...EW_IMG", "error": null}' [1158013 bytes] TEXT '{"event_time": "2023-10-23 11:59:20.542489", "p...EW_IMG", "error": null}' [1158013 bytes] TEXT '{"event_time": "2023-10-23 11:59:20.788095", "p...EW_IMG", "error": null}' [1158013 bytes] TEXT '{"event_time": "2023-10-23 11:59:21.085591", "p...EW_IMG", "error": null}' [1158013 bytes] % sending keepalive ping PING bf 3b bc 0a [binary, 4 bytes] < CLOSE 1001 (going away) [2 bytes] = connection is CLOSING CLOSE 1001 (going away) [2 bytes] = connection is CLOSED ! failing connection with code 1006 ! failing connection with code 1006 x half-closing TCP connection connection closed

stephenhibbert commented 9 months ago

Fixed by #6