Insightly - getaddrinfo ENOTFOUND api.https

I’m continuing to get the following error:
getaddrinfo ENOTFOUND api.https
when attempting to connect to the Insightly API.

I have tried resetting the API Key in Insightly without success.

What might I be missing?

Thanks in advance for the help.
Steve

Hi @ftwebsolutions,

It looks like you’re encountering a DNS resolution error (getaddrinfo ENOTFOUND api.https) when trying to connect to the Insightly API. This error typically indicates that the domain name in the URL is incorrect or malformed.

Based on the Pipedream documentation for Insightly, the base URL for API requests should be formatted as follows:

https://api.<your_pod>.insightly.com/v3.1/Contacts

Here are a few things to check:

  1. Ensure the URL is Correctly Formatted: Make sure that the URL you’re using is correctly formatted. It should not include api.https, but rather https://api.<your_pod>.insightly.com/v3.1/Contacts. Replace <your_pod> with the correct pod value for your Insightly account (e.g., na1).

  2. Verify the Pod Value: Double-check that you’re using the correct pod value. You can find this information in your Insightly account settings or documentation.

  3. Check API Key Configuration: Ensure that the API key is correctly configured in your Pipedream component. If you’ve reset the API key, make sure the new key is updated in your Pipedream account.

Here’s an example of how the Pipedream component should be configured to make a request to the Insightly API:

import { axios } from "@pipedream/platform";

export default defineComponent({
  props: {
    insightly: {
      type: "app",
      app: "insightly",
    },
  },
  async run({ steps, $ }) {
    return await axios($, {
      url: `https://api.${this.insightly.$auth.pod}.insightly.com/v3.1/Contacts`,
      auth: {
        username: `${this.insightly.$auth.api_key}`,
        password: ``,
      },
    });
  },
});

If you’ve verified all these details and are still encountering issues, it might be helpful to reach out to Pipedream support for further assistance. You can visit Support - Pipedream for more support options.

I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double-check my answers and code! Learn how to build your own.

Hi @ftwebsolutions, can you doublecheck the value you’re setting for the pod? It should be the portion after https://api. and before .insightly.com/v3.1.

Thanks so much Danny. The issue was with the API. I had to copy it to a notepad before pasting it into Pipedream. I appreciate the help and your response.