New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support browser authentication method #284
Conversation
I think this is a too broad way to handle this specific case, I really don't want to keep the |
@elongl can't reply your comment so starting a thread here.
I can be more specific and except JSONDecodeError to make sure I only catch those kind of errors. Anyhow this is the message: We can have a specific handle for this message, I am just not sure how stable it is.. |
if log.startswith('Initiating login request with your identity provider.'):
logger.debug('Initiating authentication')
continue We're already seeing that these type of things don't actually do the trick, they just make it very hard to debug when a user has an actual problem. There's a reason all modern IDEs warn when you |
How does it work? Does the |
I will shed some light here:
If that a big no no for you, I can go with the specific handling and fix it later in the worst case scenario |
I understand the problem better now. Thanks for elaborating. Approved. |
Our dbt_runner expect the log messages of dbt run-operation to be in json format.
However, browser authentication scenario returns log messages as string.
So instead of failing on json parsing, I log the failure and the unsupported log message to our edr file.
This is OK because run-operation log message should be in json format as expected, so if anything is returning as string it is currently OK to ignore it.
And if something will break in the future, we will have the edr log to understand what happened and what we should change.