danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
19.44k stars 3.24k forks source link

[Bug]: Artifacts UI blank error: Failed to ensure the relay has a Service Worker registered. Service Worker API is not supported in this browser #4608

Closed roman-doubrava closed 1 month ago

roman-doubrava commented 1 month ago

What happened?

Dear LibreChat,

when using the Artefact UI we get a blank screen in the Preview Mode with the following error:

csb_relay.k6zqcaldwongir8b9mnqriffbwpbwcr.js:439 Failed to ensure the relay has a Service Worker registered. See details below. (anonymous) @ __csb_relay.k6zqcaldwongir8b9mnqriffbwpbwcr.js:439 csb_relay.k6zqcaldwongir8b9mnqriffbwpbwcr.js:442 Invariant Violation: Failed to start the relay Service Worker: Service Worker API is not supported in this browser at https://266c9f6c163ac60-preview.sandpack-static-server.codesandbox.io/__csb_relay/__csb_relay.k6zqcaldwongir8b9mnqriffbwpbwcr.js:456:3 at https://266c9f6c163ac60-preview.sandpack-static-server.codesandbox.io/__csb_relay/__csb_relay.k6zqcaldwongir8b9mnqriffbwpbwcr.js:457:3 (anonymous) @ __csb_relay.k6zqcaldwongir8b9mnqriffbwpbwcr.js:442 TypeError: Cannot read properties of undefined (reading 'ready') at start (__csb_relay.k6zqcaldwongir8b9mnqriffbwpbwcr.js:445:35)

We tried also to set "chrome://flags/#unsafely-treat-insecure-origin-as-secure" to that host "266c9f6c163ac60-preview.sandpack-static-server.codesandbox.io" but it did not resolve the issue.

We tested with Chrome(Version 122.0.6261.129 (Official Build) (64-bit)) and Edge (130.0.2849.56 (Official build) (64-bit))

Best regards

Steps to Reproduce

  1. Install Librechat
  2. Settings -> Toggle Artifacts UI -> Enable
  3. Generate Artefact with Prompt
  4. Preview Artefact

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Screenshots

image

Code of Conduct