Skip to content

🐛 Returned error is not clear when supplying an Airtable PAT with no permissions on the specified base. #6

@Squix

Description

@Squix

Description

When running the get-schema command while supplying an Airtable PAT that has not the required permissions for the supplied baseId, the CLI fails with the error:

Image

Steps to reproduce

  1. Setup a .env file with a (valid?) Airtable PAT
  2. Run the get-schema command with a baseId this token has no access to:
    ./airtable-devops get-schema -b <base_id> -o ./output
  3. Observe the error message

Expected behavior

The CLI should return a "no permissions" error.

Actual behavior

The CLI fails with an obscure JavaScript error indicating it's trying to call .map() on an undefined value.

Environment

  • CLI Version: 1.0.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions