You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/10 21:13:12 UTC

[GitHub] [airflow] harshitkgupta opened a new issue #10283: Airflow Homepage is not able to render due to TypeError: must be str, not NoneType

harshitkgupta opened a new issue #10283:
URL: https://github.com/apache/airflow/issues/10283


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   This questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**:
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release): Mav
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**: Docker image
   - **Others**:
   
   **What happened**:
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/home/airflow/.local/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/security/decorators.py", line 109, in wraps
       return f(self, *args, **kwargs)
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/www/views.py", line 359, in index
       status_count_paused=status_count_paused)
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/www/views.py", line 185, in render_template
       **kwargs
     File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py", line 281, in render_template
       template, **dict(list(kwargs.items()) + list(self.extra_args.items()))
     File "/home/airflow/.local/lib/python3.6/site-packages/flask/templating.py", line 140, in render_template
       ctx.app,
     File "/home/airflow/.local/lib/python3.6/site-packages/flask/templating.py", line 120, in _render
       rv = template.render(context)
     File "/home/airflow/.local/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
       self.environment.handle_exception()
     File "/home/airflow/.local/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
       reraise(*rewrite_traceback_stack(source=source))
     File "/home/airflow/.local/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
       raise value.with_traceback(tb)
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/www/templates/airflow/dags.html", line 20, in top-level template code
       {% extends base_template %}
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/www/templates/airflow/master.html", line 20, in top-level template code
       {% extends 'appbuilder/baselayout.html' %}
     File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 2, in top-level template code
       {% import 'appbuilder/baselib.html' as baselib %}
     File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/templates/appbuilder/init.html", line 46, in top-level template code
       {% block body %}
     File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 19, in block "body"
       {% block content %}
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/www/templates/airflow/dags.html", line 111, in block "content"
       <a href="{{ url_for('Airflow.'+ dag.default_view, dag_id=dag.dag_id) }}"
   TypeError: must be str, not NoneType
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**:
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] kaxil closed issue #10283: Airflow Homepage is not able to render due to TypeError: must be str, not NoneType

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #10283:
URL: https://github.com/apache/airflow/issues/10283


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #10283: Airflow Homepage is not able to render due to TypeError: must be str, not NoneType

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #10283:
URL: https://github.com/apache/airflow/issues/10283#issuecomment-671592660


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on issue #10283: Airflow Homepage is not able to render due to TypeError: must be str, not NoneType

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #10283:
URL: https://github.com/apache/airflow/issues/10283#issuecomment-671595267


   What version of Airflow do you have?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] harshitkgupta edited a comment on issue #10283: Airflow Homepage is not able to render due to TypeError: must be str, not NoneType

Posted by GitBox <gi...@apache.org>.
harshitkgupta edited a comment on issue #10283:
URL: https://github.com/apache/airflow/issues/10283#issuecomment-671596423


   @mik-laj version- 2.0.0.dev0 
   i am running following command
   docker run -it -p 8080:8080 --env-file local.env -e LOAD_EX=n -v /Users/harshit.gupta/IdeaProjects/datalake/airflow/dags:/opt/airflow/dags  apache/airflow:master-python3.6 webserver
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] harshitkgupta commented on issue #10283: Airflow Homepage is not able to render due to TypeError: must be str, not NoneType

Posted by GitBox <gi...@apache.org>.
harshitkgupta commented on issue #10283:
URL: https://github.com/apache/airflow/issues/10283#issuecomment-671596423


   @mik-laj i am running following command
   docker run -it -p 8080:8080 --env-file local.env -e LOAD_EX=n -v /Users/harshit.gupta/IdeaProjects/datalake/airflow/dags:/opt/airflow/dags  apache/airflow:master-python3.6 webserver
   


----------------------------------------------------------------
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:
users@infra.apache.org