Open dlouseiro opened 1 month ago
Hey @edgarrmondragon , I don't see much traction on the related issue on the Snowflake side as it seems they have their reasons to use a print
instead of a logger in this case, polluting stdout
.
Do you think we could implement some type of (maybe a bit dirty) workaround here in the tap-snowflake
?
If we know the point at which the call chain starts on our end, we could try using contextlib.redirect_stdout(sys.stderr)
.
While using the
tap-snowflake
withuse_browser_authentication=True
, my catalog discovery fails withRun invocation could not be completed as block failed: Cannot start plugin tap-snowflake: Catalog discovery failed: invalid catalog: Expecting value: line 1 column 1 (char 0)
. A bit of a cryptic error.After investigating a bit further with
meltano invoke tap-snowflake --discover > catalog.json
, I noticed that the Snowflake connector sends the browser authentication logs tostdout
, so the first line in my catalog is:After looking a bit deeper into the
snowflake-connector-python
, it seems that they useprint()
for this message here, which causes the issue.