© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
1 reply
Álvaro Artano

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,
  },
});
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; 
const body = await req.json();
  console.log(body); //{ audioBuffer: {}, episodeId: 21 }
  const { audioBuffer, episodeId } = body; 


Why is audioBuffer not send to the function?
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

Supabase database functions enquiry
SupabaseSSupabase / help-and-questions
8mo ago
Supabase Edge Functions not updating
SupabaseSSupabase / help-and-questions
11mo ago
Supabase Branching not applying edge functions
SupabaseSSupabase / help-and-questions
2mo ago
`supabase functions serve` not outputting logs anymore
SupabaseSSupabase / help-and-questions
14mo ago