Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’4y agoβ€’
4 replies
β˜…π’„π’π’‚π’Šπ’“π’†β˜…

Not getting any data from my table

Just started following the guides on the supabase website and got to the part where it shows how to get my data from my tables, but my data variable is empty and error is null. Any ideas what is going on?
import { createClient } from '@supabase/supabase-js';
import { config } from 'dotenv';
config();

const supabaseUrl = process.env.SUPABASE_URL;
const supabaseKey = process.env.SUPABASE_KEY;
const supabase = createClient(supabaseUrl, supabaseKey);

const { data, error } = await supabase.from('test').select();

if (data) console.log('data: \n' + data + '\n');
if (error) console.warn('error: \n' + error + '\n');
import { createClient } from '@supabase/supabase-js';
import { config } from 'dotenv';
config();

const supabaseUrl = process.env.SUPABASE_URL;
const supabaseKey = process.env.SUPABASE_KEY;
const supabase = createClient(supabaseUrl, supabaseKey);

const { data, error } = await supabase.from('test').select();

if (data) console.log('data: \n' + data + '\n');
if (error) console.warn('error: \n' + error + '\n');

Output:
(node:5584) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
data: 
(node:5584) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
data: 
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Getting profile data from another table
SupabaseSSupabase / help-and-questions
4y ago
tried to get data from supabase its not getting any
SupabaseSSupabase / help-and-questions
6mo ago
Not getting data
SupabaseSSupabase / help-and-questions
8mo ago
getting null value while selecting data from the table
SupabaseSSupabase / help-and-questions
4y ago