Skip to content

[ERROR]wsgi:error was found while add applications #601

@jesse-zhangh

Description

@jesse-zhangh

Deployment

Docker Compose and Dockerhub

Add Applications

Report errors on logs

192.168.133.1 - - [10/May/2024:07:35:20 +0000] "GET /static/easymde/dist/easymde.min.js HTTP/1.1" 404 1040 "http://192.168.133.160:8081/add_application" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
192.168.133.1 - - [10/May/2024:07:35:20 +0000] "GET /static/css/fontawesome/webfonts/fa-solid-900.woff2 HTTP/1.1" 304 898 "http://192.168.133.160:8081/static/css/fontawesome/css/all.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
192.168.133.1 - - [10/May/2024:07:35:20 +0000] "GET /static/css/fontawesome/webfonts/fa-regular-400.woff2 HTTP/1.1" 304 899 "http://192.168.133.160:8081/static/css/fontawesome/css/all.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
[Fri May 10 07:36:16.816888 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877] vr: ERROR Exception on /add_application [POST]
[Fri May 10 07:36:16.817140 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877] Traceback (most recent call last):
[Fri May 10 07:36:16.817176 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 2190, in wsgi_app
[Fri May 10 07:36:16.817191 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     response = self.full_dispatch_request()
[Fri May 10 07:36:16.817233 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1486, in full_dispatch_request
[Fri May 10 07:36:16.817247 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     rv = self.handle_user_exception(e)
[Fri May 10 07:36:16.817261 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1484, in full_dispatch_request
[Fri May 10 07:36:16.817351 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     rv = self.dispatch_request()
[Fri May 10 07:36:16.817394 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1469, in dispatch_request
[Fri May 10 07:36:16.817419 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
[Fri May 10 07:36:16.817457 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask_login/utils.py", line 290, in decorated_view
[Fri May 10 07:36:16.817476 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     return current_app.ensure_sync(func)(*args, **kwargs)
[Fri May 10 07:36:16.817518 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/var/www/html/src/vr/functions/route_decorators.py", line 14, in decorated_function
[Fri May 10 07:36:16.817544 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     return f(*args, **kwargs)
[Fri May 10 07:36:16.817560 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/var/www/html/src/vr/assets/web/applications.py", line 896, in add_application
[Fri May 10 07:36:16.817590 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     new_app, app_name, sla_configuration, regulations = _setup_new_app(request)
[Fri May 10 07:36:16.817607 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/var/www/html/src/vr/assets/web/applications.py", line 954, in _setup_new_app
[Fri May 10 07:36:16.817621 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     PHI=1 if 'PHI' in data_types else 0,
[Fri May 10 07:36:16.817680 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877] TypeError: argument of type 'NoneType' is not iterable
[Fri May 10 07:36:16.817820 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877] ERROR:vr:Exception on /add_application [POST]
[Fri May 10 07:36:16.817863 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877] Traceback (most recent call last):
[Fri May 10 07:36:16.817881 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 2190, in wsgi_app
[Fri May 10 07:36:16.817895 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     response = self.full_dispatch_request()
[Fri May 10 07:36:16.817909 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1486, in full_dispatch_request
[Fri May 10 07:36:16.817922 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     rv = self.handle_user_exception(e)
[Fri May 10 07:36:16.817961 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1484, in full_dispatch_request
[Fri May 10 07:36:16.817986 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     rv = self.dispatch_request()
[Fri May 10 07:36:16.818029 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1469, in dispatch_request
[Fri May 10 07:36:16.818046 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
[Fri May 10 07:36:16.818074 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/usr/local/lib/python3.10/dist-packages/flask_login/utils.py", line 290, in decorated_view
[Fri May 10 07:36:16.818088 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     return current_app.ensure_sync(func)(*args, **kwargs)
[Fri May 10 07:36:16.818102 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/var/www/html/src/vr/functions/route_decorators.py", line 14, in decorated_function
[Fri May 10 07:36:16.818116 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     return f(*args, **kwargs)
[Fri May 10 07:36:16.818130 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/var/www/html/src/vr/assets/web/applications.py", line 896, in add_application
[Fri May 10 07:36:16.818143 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     new_app, app_name, sla_configuration, regulations = _setup_new_app(request)
[Fri May 10 07:36:16.818157 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]   File "/var/www/html/src/vr/assets/web/applications.py", line 954, in _setup_new_app
[Fri May 10 07:36:16.818171 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877]     PHI=1 if 'PHI' in data_types else 0,
[Fri May 10 07:36:16.818185 2024] [wsgi:error] [pid 7:tid 140205813225024] [remote 192.168.133.1:3877] TypeError: argument of type 'NoneType' is not iterable
192.168.133.1 - - [10/May/2024:07:36:16 +0000] "POST /add_application HTTP/1.1" 500 1074 "http://192.168.133.160:8081/add_application" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"

How can I solve this issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions