francois2metz / steampipe-plugin-airtable

Steampipe plugin to access Airtable
https://hub.steampipe.io/plugins/francois2metz/airtable/
Apache License 2.0
14 stars 7 forks source link

Fix the plugin initialization error when the API token is not set in the .spc file #16

Closed misraved closed 7 months ago

misraved commented 8 months ago

Steampipe CLI version: v0.21.4 Plugin version: v0.5.0

After installing the Airtable plugin, when I run steampipe query without setting the token parameter in the airtable.spc file, I get the following warning -

Warning: failed to start plugin instance 'hub.steampipe.io/plugins/francois2metz/airtable@latest': 'token' must be set in the connection configuration. Edit your connection configuration file and then restart Steampipe

This PR aims at returning nil instead of an error when the token parameter is not set.

francois2metz commented 7 months ago

Hi, So basically there is no way to tell the user that there is a configuration error when initializing the plugin?

misraved commented 7 months ago

@francois2metz apologies for the delayed response.

The error will always be available in the plugin logs, if we don't mask this error, it surfaces during the plugin initialization process.