SupabaseS
Supabase4y ago
Jan

Supabase Connection failed

The connection fails and I don't know why, I followed the previous steps from the Supabase x Flutter quickstart.

Here's the main code:

||Future<void> main() async { await Supabase.initialize( url: 'https://ciofasdascah.supabase.co', anonKey: 'eyJhbGciOiJIUzI1NiIssLz4GkU', ); print('loading all users...'); // final data = await supabase.from('users').select().eq('uid', 1); try { final data = await supabase.from('users').select().eq('uid', 1).single() as Map; String uidString = (data['uid'] ?? '') as String; print(uidString); // _websiteController.text = (data['website'] ?? '') as String; // _avatarUrl = (data['avatar_url'] ?? '') as String; } on PostgrestException catch (error) { print(error.message); } catch (error) { print('Unexpected error: ' + error.toString()); } print('loaded'); runApp(const MyApp()); } ||
Was this page helpful?