• Resolved amrevnc

    (@amrevnc)


    Summary: My store is integrated with Printful (drop-shipper) using its Printful Integration plugin. When I put an order in my cart, the “Shipping” field shows “Invalid API Key.” After multiple rounds with Printful and my hosting service, the latter identified that Woo is calling for the TaxJar plugin. (I had updated to Woo 9.0, but Printful had me revert to 8.2.2.) I request your advice on what to do next, please.

    Full details:

    My Woocommerce store is integrated with Printful, my drop-shipper. Shipping rates in the Woo Cart are populated through the Printful Integration plugin. Currently in my Cart, at “Shipping,” this error message appears: “Error: Invalid API key.” I do not know how long the problem has existed; I just noticed it on Saturday. I tried creating a new key in Woo and entering it with Printful. I have also tried both the Legacy Rest API (using that Woo plugin) and creating a new one.

    Printful Customer Support reviewed the store’s integration logs and found multiple cases of this message: “Error: Invalid response from your WooCommerce store. Please make sure your site is working and no plugins are blocking WooCommerce API access.”

    I contacted Printful, which had me revert to an earlier version of Woo, then sent other suggestions on the server side. My hosting service responded:

    ———–

    Checking on amrevnc.com, everything seems to be in order. The error logs
    show no issues related to WooCommerce and, while there are a few warnings
    related to the must use plugins on the site, the install shows no
    permission issues on files or anything else that would cause a 403 error
    from our end.

    That being said, I turned on WordPress debugging mode and tried
    calculating shipping for an item, and got the same error. The debug log
    shows the following:

    [09-Jul-2024 12:20:27 UTC] :::: TaxJar Plugin requested :::: (WCS Tax)
    [09-Jul-2024 12:20:27 UTC] :::: TaxJar API called :::: (WCS Tax)
    [09-Jul-2024 12:20:27 UTC] :::: TaxJar API request validation :::: (WCS
    Tax)
    [09-Jul-2024 12:20:27 UTC] API request is in good format. (WCS Tax)
    [09-Jul-2024 12:20:27 UTC] Requesting: taxjar/v2/taxes -
    {"from_country":"US","from_state":"NC","from_zip":"27713","from_city":"Durham","from_street":"5414
    Loyal
    Place","to_country":"default","to_state":"California","to_zip":"90210","to_city":"Beverly
    Hills","to_street":false,"shipping":"0","plugin":"woo","line_items":[{"id":"6517-aea82fd1c73faba8d41ea7f4d78447cb","quantity":1,"product_tax_code":"","unit_price":"25.99","discount":"0"}]}
    (WCS Tax)
    [09-Jul-2024 12:20:27 UTC] Error retrieving the tax rates. Received
    (406): {"status":"406","error":"Not Acceptable","detail":"to_country must
    be a two-letter ISO code."} (WCS Tax)
    [09-Jul-2024 12:20:27 UTC] Received: none. (WCS Tax)

    According to this, a plugin called TaxJar is being called, however, I
    don't see any install for the plugin, not even a directory created for it
    on the server, so it's likely this is the cause. My suggestion would be
    to reach out to WooCommerce's support, explain the situation, and maybe
    even providing the errors printed on the debug log above, to see what
    they say.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @amrevnc

    WooCommerce doesn’t call or use TaxJar by default. Just to clarify, are you using any plugins for automatic tax calculation like the WooCommerce Shipping & Tax plugin? If you’re not, the problem might be with the Printful plugin or another one. The best way to determine this is to:

    • Temporarily switch your theme to Storefront or Twenty Twenty-Four
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Additionally, if you’re not required to collect tax on your products, you can disable tax calculations or the WooCommerce Shipping & Tax plugin. This should prevent the error from occurring.

    I hope that helps! Let me know once you have done a conflict test!

    Thread Starter amrevnc

    (@amrevnc)

    Thank you for your detailed response, Shameem. But I am using WooCommerce Shipping & Tax. Given that, what steps do you suggest?

    Hey, @amrevnc!

    Thanks for confirming!

    Can you please deactivate WooCommerce Shipping & Tax and check if the issue persists?

    Please let us know how it goes!

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter amrevnc

    (@amrevnc)

    Hello,

    I deactivated Shipping & Tax, cleared caches, and added a product to my empty cart. A minor change resulted: When I viewed my cart, I was given the option to calculate shipping (instead of the error message). When I went to Checkout, however, “Invalid API key” was still there.

    Thank you,
    Jim

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @amrevnc

    Since Printful handles your shipping, so the error you’re experiencing might be related to their Printful API integration. It would be best to reach out to the printful’s support for further assistance here.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter amrevnc

    (@amrevnc)

    I write this with a wry, knowing, smile, on my face… I knew this was going to happen. ??

    Printful sent me to Dreamhost… Dreamhost sent me to you folks… you folks send me to Printful! From my original post: “I contacted Printful, which had me revert to an earlier version of Woo, then sent other suggestions on the server side. My hosting service responded…”

    Sigh.

    Hey, @amrevnc!

    I understand this is a frustrating situation.

    However, since the issue is with the integration with Printiful, as my colleague mentioned, they should be the ones providing support for it, as we can only help with the core WooCommerce plugin and its features, not with third-party integration and API.

    Having said that, I see that you mentioned:

    “Error: Invalid response from your WooCommerce store. Please make sure your site is working and no plugins are blocking WooCommerce API access.”

    Were you able to try a full conflict test to check? I see you tried deactivating ?Shipping & Tax, but maybe another plugin is blocking or interfering with it.

    So, as my colleague suggested:

    • Temporarily switch your theme to Storefront or Twenty Twenty-Four
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict.?You can find a more detailed explanation on how to do a conflict test here.

    I hope this helps ??

    Have a wonderful day!

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @amrevnc

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Invalid API Key in cart’ is closed to new replies.