benjamin_maquet
11/24/2020, 4:43 PMmeltano invoke <my_tap>, it does output the correct config. But when running meltano invoke <my_tap>, it fails. I see the command passed is command ['/<my_project>/.meltano/extractors/<my_tap>/venv/bin/<my_tap>', '--config', '/<my_project>/.meltano/run/<my_tap>/tap.config.json', '--discover']
However, when checking /<my_project>/.meltano/run/<my_tap>/tap.config.json it looks like this file is not created. Is it expected? Is the file created and then removed completely?
thanks!douwe_maan
11/24/2020, 4:47 PMWhen I runĀI assume you mean, it does output the correct config.meltano invoke <my_tap>
meltano config <tap> ?
But when runningĀHow does it fail? Can you share any relevant error output?, it fails.meltano invoke <my_tap>
I see the command passed isĀcommand ['/<my_project>/.meltano/extractors/<my_tap>/venv/bin/<my_tap>', '--config', '/<my_project>/.meltano/run/<my_tap>/tap.config.json', '--discover']
However, when checkingĀYep, the config file is deleted automatically to prevent sensitive values (credentials etc) from sticking around on your filesystem. If you're runningĀ it looks like this file is not created. Is it expected? Is the file created and then removed completely?/<my_project>/.meltano/run/<my_tap>/tap.config.json
meltano invoke with --log-level=debug , you should see a log message confirming the deletion as well.douwe_maan
11/24/2020, 4:48 PMmeltano invoke --dump=config <tap> to print the contents of the generated tap.config.json instead of actually invoking the plugin: https://meltano.com/docs/command-line-interface.html#invokedouwe_maan
11/24/2020, 4:49 PMmeltano invoke --dump=config typically shows the same result as meltano config , but it lets you print the actual generated config filebenjamin_maquet
11/24/2020, 4:52 PMmeltano config <tap> seems to work correctly.benjamin_maquet
11/24/2020, 4:54 PMmeltano.yml filedouwe_maan
11/24/2020, 4:57 PMmeltano invoke --dump=config <tap> shows the content of tap.config.json exactly as it'll be passed to the plugin, if that file looks correct but you're still getting a creds error, the issue is likely in the tap itself, or the config keys used may be incorrect.douwe_maan
11/24/2020, 4:57 PMbenjamin_maquet
11/24/2020, 4:59 PMbenjamin_maquet
11/24/2020, 5:01 PMmeltano invoke --dump=config <tap> does not work since it's failing before showing the content of the filedouwe_maan
11/24/2020, 5:07 PMdouwe_maan
11/24/2020, 5:11 PMmeltano --log-level=debug invoke --dump=config <tap> may show moredouwe_maan
11/24/2020, 8:56 PMmeltano invoke --dump=config is failing: before invoking the tap in sync mode, Meltano always runs the tap in discovery mode to generate the catalog file, and using --dump=config doesn't disable that "before_invoke" hook, so what you're seeing is the tap failing in discovery mode before Meltano even gets a chance to print the generated config file.benjamin_maquet
11/25/2020, 9:18 AM--discover in the command passeddouwe_maan
11/25/2020, 4:16 PMmeltano invoke --dump=catalog isn't working, we should still be able to trust that whatever meltano config prints is what actually gets passed to the plugin as config.json . Were you able to figure out why it's complaining about your credentials?