Getting error (ERR_CERT_COMMON_NAME_INVALID) when querying product.

Highlighted
New Member
1 0 0

Hello

I am using the storefront api to query data from my store.

At the moment I have this function which takes a productId as an argument and returns a product.

 

async function getProductById(productId) {
    const product = await client.product.fetch(productId);
    return product;
  }

 

 

When trying to use it, I get the following error.

POST https://MYSTORE.myshopify.com.myshopify.com/api/2020-07/graphql net::ERR_CERT_COMMON_NAME_INVALID

Is there something that I am missing? 

 

0 Likes