EamonKeane edited a comment on issue #4101: [AIRFLOW-3272] Add base grpc hook URL: https://github.com/apache/airflow/pull/4101#issuecomment-474515051 Not sure if this is due to my misconfiguration, but before this commit my setup works while after it, I get a jinja2 error of `extra__grpc__auth_type` not defined when accessing connections from the new www fab UI. ``` ____/ ( ( ) ) \___ /( ( ( ) _ )) ) )\ (( ( )( ) ) ( ) ) ((/ ( _( ) ( _) ) ( () ) ) ( ( ( (_) (( ( ) .((_ ) . )_ ( ( ) ( ( ) ) ) . ) ( ) ( ( ( ( ) ( _ ( _) ). ) . ) ) ( ) ( ( ( ) ( ) ( )) ) _)( ) ) ) ( ( ( \ ) ( (_ ( ) ( ) ) ) ) )) ( ) ( ( ( ( (_ ( ) ( _ ) ) ( ) ) ) ( ( ( ( ( ) (_ ) ) ) _) ) _( ( ) (( ( )( ( _ ) _) _(_ ( (_ ) (_((__(_(__(( ( ( | ) ) ) )_))__))_)___) ((__) \\||lll|l||/// \_)) ( /(/ ( ) ) )\ ) ( ( ( ( | | ) ) )\ ) ( /(| / ( )) ) ) )) ) ( ( ((((_(|)_))))) ) ( ||\(|(|)|/|| ) ( |(||(||)|||| ) ( //|/l|||)|\\ \ ) (/ / // /|//||||\\ \ \ \ _) ------------------------------------------------------------------------------- Node: airflow-staging-web-7fd889645d-6bnt2 ------------------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise raise value File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py", line 26, in wraps return f(self, *args, **kwargs) File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/views.py", line 512, in add widgets=widget) File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/baseviews.py", line 161, in render_template return render_template(template, **dict(list(kwargs.items()) + list(self.extra_args.items()))) File "/usr/local/lib/python3.7/site-packages/flask/templating.py", line 135, in render_template context, ctx.app) File "/usr/local/lib/python3.7/site-packages/flask/templating.py", line 117, in _render rv = template.render(context) File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.7/site-packages/airflow/www/templates/airflow/conn_create.html", line 18, in top-level template code {% extends 'appbuilder/general/model/add.html' %} File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/templates/appbuilder/general/model/add.html", line 2, in top-level template code {% import 'appbuilder/general/lib.html' as lib %} File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/templates/appbuilder/base.html", line 1, in top-level template code {% extends base_template %} File "/usr/local/lib/python3.7/site-packages/airflow/www/templates/appbuilder/baselayout.html", line 19, in top-level template code {% import 'appbuilder/baselib.html' as baselib %} File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/templates/appbuilder/init.html", line 46, in top-level template code {% block body %} File "/usr/local/lib/python3.7/site-packages/airflow/www/templates/appbuilder/baselayout.html", line 50, in block "body" {% block content %} File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/templates/appbuilder/general/model/add.html", line 7, in block "content" {% block add_form %} File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/templates/appbuilder/general/model/add.html", line 8, in block "add_form" {{ widgets.get('add')(form_action=form_action)|safe }} File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/widgets.py", line 34, in __call__ return template.render(args) File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/templates/appbuilder/general/widgets/form.html", line 43, in top-level template code {% if field.name not in exclude_cols %} File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 430, in getattr return getattr(obj, attribute) jinja2.exceptions.UndefinedError: 'airflow.www.forms.ConnectionForm object' has no attribute 'extra__grpc__auth_type' ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
