Why am I Receiving "App Not Valid for App Type 'Airtable'" Error in Custom Node Code?

This topic was automatically generated from Slack. You can find the original thread here.

For some reason, I am getting app not valid for app type “airtable” in custom node code. This was working a few weeks ago. Any suggestions?

I’m sorry to hear that you’re having issues with your custom code. To help you better, can you please provide more details about your code and the specific error message you’re encountering? This will help me understand the issue and provide a more accurate solution.

This is the code for the props:

props: {
    airtable: {
      type: "app",
      app: "airtable",
    },
    base_id: {
      type: "$.airtable.baseId",
      appProp: "airtable",
    },
    table_id: {
      type: "$.airtable.tableId",
      baseIdProp: "base_id",
    },
}

I see an error next to the Airtable App in configuration saying: App is not valid

I see that you’re trying to use Airtable app props in your custom code. Based on the code you provided, it seems like you might be using the wrong prop types for base_id and table_id. Instead of using $.airtable.baseId and $.airtable.tableId, you should use the appropriate prop types. Here’s the corrected code: ```
props: { airtable: { type: “app”, app: “airtable”, }, base_id: { type: “string”, label: “Base ID”, appProp: “airtable”, }, table_id: { type: “string”, label: “Table ID”, baseIdProp: “base_id”, }, }

The error is indicating that the app itself is not correct (e.g. the airtable prop)

I apologize for the confusion earlier. Based on the information you provided, it seems that there might be an issue with the Airtable app configuration in your Pipedream account. To resolve this issue, please try the following steps: 1. Visit your Connected Apps page on Pipedream. 2. Find the Airtable app and click on it. 3. Check if there are any issues with the authentication or if the app is properly connected. 4. If necessary, reconnect the Airtable app by following the on-screen instructions. After completing these steps, please try running your custom code again. If the issue persists, let me know and we can investigate further.

Any chance I can get some help with this? The configuration section is not showing a dropdown and says the app is invalid

Hi , would you mind using airtable_oauth instead?

Here’s the code:

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    airtable_oauth: {
      type: "app",
      app: "airtable_oauth",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.airtable.com/v0/meta/whoami`,
      headers: {
        Authorization: `Bearer ${this.airtable_oauth.$auth.oauth_access_token}`,
      },
    })
  },
})

what would the other props look like? e.g the base and table variables

The support for airtable props such as

 base_id: {
      type: "$.airtable.baseId",
      appProp: "airtable",
    },
    table_id: {
      type: "$.airtable.tableId",
      baseIdProp: "base_id",
    },

is no longer supported, you’ll need to put in the ID manually

Ok thanks for the clarification. When was this changed btw?

It was changed a few weeks ago, when Airtable APi key was no longer valid