Supabase functions not recieving data

Hey! I have a function, it is able to read some data, but not others. Here's the info


NextJS action:
const buffer = await file.arrayBuffer();
console.log(buffer); //THE BUFFER IS CONSOLE.LOGGED CORRECTLY

client.functions.invoke('processEpisode', {
  body: {
    audioBuffer: buffer,
    episodeId: createdEpisode.data?.[0].id,
  },
});


Supabase function:
const body = await req.json();
  console.log(body); //{ audioBuffer: {}, episodeId: 21 }
  const { audioBuffer, episodeId } = body; 


Why is audioBuffer not send to the function?
Was this page helpful?