WooCommerce REST API auth broken - v3 issue?

Hi All,

I’ve had a WooCommerce REST API integration running smoothly for over a year. It broke today and I suspect a Woo update caused it.

Even if I try to add a new Account source with a fresh Woo API key, it fails to set up the new account. Could this be because Pipedream is using v2 of the API and v3 is the latest and greatest?

Sincere thanks for any help or tips,

Phil

Update on this… it appears that axios with Basic auth hangs in general, even if I hardcode basic auth details and order number.

  • I have verified that the source is accepting requests (I get the proper response when I test without Pipedream).

  • I have tested axios with basic auth in my client’s Pipedream account and face the same issue.

Example:

import axios from "axios";

export default defineComponent({
  async run({ steps, $ }) {

   const res = await axios({
      method: "GET",
      url: 'https://URL.com/wp-json/wc/v3/orders/hardcoded_ORDER',
      auth: { username: 'hardcoded_KEY', password: 'hardcoded_SECRET'},
    });

    const { data } = res;
    console.log(data);
  }
});

@philippedubs Are you seeing a specific error in that last example step? Are you able to visit your workflow’s Settings and enable the setting to share the workflow with Pipedream Support? I’d like to see the logs from that run.

Do you operate a firewall or any kind of network rules that would block connections from specific IP addresses? Or do you use a service like Cloudflare in front of your Wordpress instance that would reject network requests from Pipedream? If the request is timing out completely, that may be related.

Hi @dylburger

Cool to get support from the top dog (on a holiday no less).

I just enabled support access, it’s my client-thd-order_emails workflow. I used the Pipedream auths manager up to v68 (that’s what worked for 1yr). Today I did a few new versions trying to hardcode the auth details, moving the order number to the URL, etc.

Again, I can confirm that this website is accepting requests and returning data when I test outside of Pipedream (including axios on my local).

I also tried to do basic auth to the same Woo site in one of my clients Pipedream accounts to no avail… this client has no legacy Pipedream v1 workflows so I thought that may help…

@dylburger apologies for not trying sooner – when I test the basic auth on a different Woo setup it works. Looks like an external issue not Pipedream.

Great thanks for confirming. Let us know if you figure out what the issue is,