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

Firebase Wrapper: Failed to retrieve rows from table #220

Open
saidelimam opened this issue Jan 6, 2024 · 0 comments
Open

Firebase Wrapper: Failed to retrieve rows from table #220

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

Comments

@saidelimam
Copy link

Bug report

Describe the bug

Looks like this foreign table setting from Supabase doc is not correct:

create foreign table firebase_users (
uid text,
email text,
created_at timestamp,
attrs jsonb
)
server firebase_server
options (
object 'auth/users'
);

But the error message returns the right user data in the error message, in the format:

{
"kind": "identitytoolkit#DownloadAccountResponse",
"users": [...]
}

To Reproduce

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

insert into vault.secrets (name, secret)
values (
  'firebase',
  '{
    ************************
  }'
)
returning key_id;

create server firebase_server
  foreign data wrapper firebase_wrapper
  options (
    sa_key_id '***************************', -- The Key ID from above.
    project_id 'xxxxxxxx'
);

create foreign table firebase_users (
  uid text,
  email text,
  created_at timestamp,
  attrs jsonb
)
  server firebase_server
  options (
    object 'auth/users'
  );

Expected behavior

Display user data in Rows or return them from a Select query on the foreign table

Screenshots

Screenshot 2024-01-06 at 21 52 04

System information

  • OS: [e.g. macOS, Windows] macOS
  • Browser (if applies) [e.g. chrome, safari]: Chrome Version 120.0.6099.199
  • Version of supabase-js: [e.g. 6.0.2]
  • Version of Node.js: [e.g. 10.10.0]
@saidelimam saidelimam added the bug Something isn't working label Jan 6, 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