Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supabase-ssr: Failed to execute 'postMessage' on 'BroadcastChannel' #734

Open
2 tasks done
Aietes opened this issue Jan 29, 2024 · 0 comments
Open
2 tasks done

supabase-ssr: Failed to execute 'postMessage' on 'BroadcastChannel' #734

Aietes opened this issue Jan 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Aietes
Copy link

Aietes commented Jan 29, 2024

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Using the supabase-ssr library with Nuxt 3, I'm getting the following error:

DOMException: Failed to execute 'postMessage' on 'BroadcastChannel': #<Object> could not be cloned.
    at SupabaseAuthClient._notifyAllSubscribers (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-A274CJAX.js?v=7251ccc1:2156:31)
    at SupabaseAuthClient._recoverAndRefresh (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-A274CJAX.js?v=7251ccc1:2101:20)
    at async http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-A274CJAX.js?v=7251ccc1:2351:11

I'm trying to pin down where the error comes from, it could be related to serializing cookies. I hope to get help, determine if this error has an impact on auth, and ideally fix it.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

I'll try to provide a reproduction, but since this error is auth related, I can't provide the actual code base.

Expected behavior

No postMessage / broadcast error to occur.

Screenshots

Screenshot 2024-01-29 at 22 42 15

System information

Operating System: Linux
Node Version: v18.18.0
Nuxt Version: 3.9.3
CLI Version: 3.10.0
Nitro Version: 2.8.1
Package Manager: npm@10.2.3

Additional context

Add any other context about the problem here.

@Aietes Aietes added the bug Something isn't working label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant