notrab / headless-dropshipping-starter

Create your own dropshipping store with Next.js, Snipcart & Printful 👕
https://headlessdropshipping.com
719 stars 135 forks source link

Some error is happening while fetching shipping rates #96

Closed adeirjunior closed 3 weeks ago

adeirjunior commented 1 year ago

I'm not sure why this is happening, but it looks like the error is that the necessary object keys to send through the api had changed

fetching error

notrab commented 1 year ago

Have you checked the docs for either? I’d happily accept a PR that fixed this.

matt-peck commented 1 year ago

@adeirjunior

Possible Issues:

  1. It looks like you are in Test mode instead of Live
  2. I had a similar issue in live mode and found that I had to review the snipcart configuration for shipping. There was a message at the very top that said it needed to verify my business address.

Hope that helps.

adeirjunior commented 1 year ago

@matt-peck

Thanks for the answer, but it looks like it didn't change anything unless now the development error message is hidden.

image

I really was in Test mode previously, but now that I've put in my credit card and obtained the live public API key, it's still the same.

Below are the console log errors.

2023-03-23

As for configuring my business address, the only things that are empty are ADDRESS 2 and VAT NUMBER. Are these necessary for the WEBHOOK?

adeirjunior commented 1 year ago

Have you checked the docs for either? I’d happily accept a PR that fixed this.

Thank you for the response, but now that I have thought about it more, the problem cannot be happening because of an error in the webhook since your demo is working correctly. So, I must have actually made some incorrect configuration when setting up the webhook on Snipcard.

I believe I followed your Snipcard configuration guide in the readme as instructed. Are there any additional steps required to set it up correctly?