n8n excption

This commit is contained in:
qiaofeng1227 2023-05-23 10:08:59 +08:00
parent 19e190fc7a
commit d141051305
3 changed files with 6 additions and 4 deletions

View file

@ -10,7 +10,7 @@ COPY static ./static
COPY requirements.txt main.py ./
RUN apt update
# Install supervisord
# Install supervisords
RUN apt install -y supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/cmd.sh /cmd.sh

View file

@ -362,7 +362,7 @@ def get_apps_from_compose():
else:
default_domain = domain
except IndexError:
pass
myLogger.info_logger("domain exception")
try:
app_version = env_map.get("APP_VERSION")
volume_data = "/data/apps/" + customer_name + "/data"
@ -378,7 +378,7 @@ def get_apps_from_compose():
if default_domain != "" and admin_path != "":
admin_domain_url = "http://" + default_domain + admin_path
except IndexError:
pass
myLogger.info_logger("APP_USER POWER_PASSWORD exception")
try:
replace = env_map.get("APP_URL_REPLACE","false")
myLogger.info_logger("replace="+replace)
@ -388,7 +388,7 @@ def get_apps_from_compose():
if https == "true":
app_https = True
except IndexError:
pass
myLogger.info_logger("APP_HTTPS_ACCESS exception")
try:
http_port = env_map.get("APP_HTTP_PORT","0")

View file

@ -69,10 +69,12 @@ def AppStatus(request: Request,app_id: Optional[str] = Query(default=None, descr
ret = {}
ret['ResponseData'] = manage.get_app_status(app_id)
except CommandException as ce:
myLogger.info_logger(ce.message)
ret = {}
ret['ResponseData'] = None
ret['Error'] = manage.get_error_info(ce.code, ce.message, ce.detail)
except Exception as e:
myLogger.info_logger(e)
ret = {}
ret['ResponseData'] = None
ret['Error'] = manage.get_error_info(const.ERROR_SERVER_SYSTEM, "system original error", str(e))