addToCurrentCart request error,

Question:
I followed the documentation very carefully, but i keep getting these errors

I am using NextJs to code this and i wrote the format like this:
export async function addToCart({ product, selectedOptions, quantity }) {
const wixClient = getWixClient();
const selectedVariant = findVariant(product, selectedOptions);
console.log(selectedVariant);

const numericQuantity = Number(quantity);

const cartItem = wixClient.currentCart.addToCurrentCart({
lineItems: [
{
catalogReference: {
appId: “215238eb-22a5-4c36-9e7b-e7c08025e04e”,
catalogItemId: ,
options: { variantId : },
},
quantity: numericQuantity, //this is a number type
},
],
});

console.log(cartItem);

}
and yes i confirmed that all the arguments were recieved sucessfully and wixClient was also fetched. Annoying enough i used the same currentCart property to getCurrentCart and it worked sucessfully. i have checked online to see if thereis anything i am missing but i am not seeing any, please help me !!

i purposely left the catalogItemId and the option empty because i felt it was sensitive info, might still be exposed in my logs, lol

On the bright side, it is not sensitive, so even had it been exposed, it doesn’t matter