© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago•
2 replies
0xpaperhead - NEVER DM FIRST

Supabase insertion fails silently

This code will fail silently if you add a column name that doesn't exist. It neither returns an error inside the error prop nor in the catch block:

const { data, error } = await this.supabase
                .from('users')
                .insert([
                    {
                        name: wallet_address,
                        partner_id: partner_id,
                        ecossytem: ecosystem,
                        kvalue: kvalue,
                        email: email
                    }
                ])
                .select();

            if (error) {
                return { error: error };
            }

            return { success: true, data: data };

        } catch (error) {
            // Handle errors
            throw handleError(error, 'createUser');
        }
const { data, error } = await this.supabase
                .from('users')
                .insert([
                    {
                        name: wallet_address,
                        partner_id: partner_id,
                        ecossytem: ecosystem,
                        kvalue: kvalue,
                        email: email
                    }
                ])
                .select();

            if (error) {
                return { error: error };
            }

            return { success: true, data: data };

        } catch (error) {
            // Handle errors
            throw handleError(error, 'createUser');
        }
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

Switching tabs silently fails reconnection
SupabaseSSupabase / help-and-questions
6mo ago
Create index with HNSW silently fails
SupabaseSSupabase / help-and-questions
3y ago
Supabase MCP local fails
SupabaseSSupabase / help-and-questions
3mo ago
supabase.com loads fails
SupabaseSSupabase / help-and-questions
3y ago