GitHub
11/13/2024, 4:26 PMconfig test command should return more helpful logs
Issue created by pnadolny13
I'm not sure what options are available but this is related to a slack thread https://meltano.slack.com/archives/CMN8HELB0/p1670907167441139 where meltano config tap-google-analytics test was failing and it was hard to figure out what was wrong.
In this case the view_id was expected to be a string but was being passed in as an integer. The error message just says Plugin configuration is invalid with no other context. Eventually we ran the tap with invoke and it showed log messages that explained the misconfiguration singer_sdk.exceptions.ConfigValidationError: Config validation failed: <number> is not of type 'string'. I also got the same generic Plugin configuration is invalid message when testing a purposefully wrong client secret.
Potentially Helpful Ideas:
1. Try to re-log the exception. Maybe we can say exactly what part of the json schema didnt pass validation or if the tap is executed we can re-log the exception (although I know thats tricky).
2. Add a log to the config/test error output about what it means. I.e. "Plugin configuration is invalid. This could be related to a schema violation or because the tap was unable to connect to the source system with provided configs." 🤷
3. Add a suggestion to try using invoke to see if the tap returns a helpful log about whats misconfigured
4. The hub tells users to run config/test. Maybe it should also have a note to try running invoke.
cc @menzenski
meltano/meltanoGitHub
11/13/2024, 4:26 PMconfig test command should return more helpful logs
Issue closed as completed by edgarrmondragon
meltano/meltano