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)

    }

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.
Was this page helpful?