© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
daredevil

Edge Function Requestion log states bodyUsed false.

When trying to invoke an edge function the request is read to not have a body no matter what I do. My invocation is
    async function getData(plan_data){
        console.log(plan_data)
        console.log(JSON.stringify({plan_data}))
        const { data, error } = await supabase.functions.invoke("create-stripe-checkout",
        {
            // body: JSON.stringify({"test": 12345})
            body: {
                "plan": plan_data
            }
            })
              
        console.log(data.data, error)
        // console.log(data)

    }
    async function getData(plan_data){
        console.log(plan_data)
        console.log(JSON.stringify({plan_data}))
        const { data, error } = await supabase.functions.invoke("create-stripe-checkout",
        {
            // body: JSON.stringify({"test": 12345})
            body: {
                "plan": plan_data
            }
            })
              
        console.log(data.data, error)
        // console.log(data)

    }

I tried several different ways of writing it including straight copy/paste from github examples (still yields the same non-existant body issue). Everything technically runs without any errors and I can't find any real indication of where something is going wrong.
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

Edge function log message
SupabaseSSupabase / help-and-questions
3y ago
CLI Unauthorized - Edge Function Deployment False Positive
SupabaseSSupabase / help-and-questions
5mo ago
Edge Function Log Issue - OpenAI API "Shutdown"
SupabaseSSupabase / help-and-questions
13mo ago
Edge Function
SupabaseSSupabase / help-and-questions
5mo ago