I'm trying to return all products and plans list from stripe.
However the products list return empty even though there's a active product created.
function getProductsAndPlans() {
return Promise.all([
stripe.products.list({}),
stripe.plans.list({}),
]).then(stripeData => {
console.log('products', stripeData[0]) <-- this is empty
console.log('plans', stripeData[1]) <-- this returns plans
}).catch(err => {
console.error('Error fetching Stripe products and plans: ', err);
return [];
});
}
Here are the products from my stripe dashboard:

Plans get returned:
But the products list is empty:
Here's a copy from the stripe doc.
const stripe = require('stripe')('sk_test_smkOYa912GSsdfdfDDfByiohm');
const products = await stripe.products.list({
limit: 3,
});
What am I missing here?

