network failures on ios simulator

I am currently located in Asia (non-china, 12 hours ahead of EST)
My database is micro, hosted in us-east-2.
a lot of my network requests fail
this happens every 5 to 7 requests on ios simulator only
does not happen on iphone 15 pro max at all
i am making an identical call on my ios simulator approximately every 0.5 to 1.0 seconds
i am on stable public wifi, 25-35 mbps down, 8 mbps up according to fast.com
using expo 53, supabase-js 2.50.5

my supabase connection is correct
const initSupabase = async () => {
  if (!supabase) {
    await initDeviceId();
    supabase = createClient(
      process.env.EXPO_PUBLIC_SUPABASE_URL || "",
      process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY || "",
      {
        auth: {
          storage: AsyncStorage,
          autoRefreshToken: true,
          persistSession: true,
          detectSessionInUrl: false,
        },
        global: {
          headers: {
            'X-Device-ID': deviceId || '',
          },
        },
      });
  }
  return supabase;
};

one of the calls that network fails
// Check if user has characters
      const { data: characters, error: charactersError } = await supabase
        .from('characters')
        .select('id, name, avatar_filename, status')
        .eq('user_id', currentUser.id);
      console.log('characters', characters);
      console.log('charactersError', charactersError);


full error log
 LOG  Error fetching character count: {"code": "", "details": "TypeError: Network request failed
    at anonymous (http://10.0.0.44:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=1&transform.routerRoot=app&unstable_transformProfile=hermes-stable:9653:33)", "hint": "", "message": "TypeError: Network request failed"}
Was this page helpful?