droxit / roxcomposer

This is the droxit microservice framework repository.
GNU Lesser General Public License v3.0
5 stars 0 forks source link

Starten eines Services mit fehlerhaftem Classpath führt zum Absturz des Servers. #81

Closed hecktor-droxit closed 5 years ago

hecktor-droxit commented 5 years ago

Ich denke, in diesem Fall sollte der entsprechende Request mit einer Error-Response beantwortet werden.

Aktuelle Fehlermeldung auf der Konsole:

Traceback (most recent call last): File "/home/christian/.local/lib/python3.6/site-packages/roxcomposer/service_loader.py", line 16, in load_class mod = importlib.import_module(modpath) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 991, in _gcd_import File "", line 930, in _sanity_check ValueError: Empty module name

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "plugins/service_container.py", line 17, in srv = roxcomposer.service_loader.make_service_instance(classpath, args) File "/home/christian/.local/lib/python3.6/site-packages/roxcomposer/service_loader.py", line 30, in make_service_instance c = load_class(classpath) File "/home/christian/.local/lib/python3.6/site-packages/roxcomposer/service_loader.py", line 19, in load_class raise exceptions.ConfigError('Failed to load the specified logging class: {} - {}'.format(classpath, e)) from e roxcomposer.exceptions.ConfigError: Failed to load the specified logging class: Hallo - Empty module name Traceback (most recent call last): File "/home/christian/.local/lib/python3.6/site-packages/roxcomposer/service_loader.py", line 16, in load_class mod = importlib.import_module(modpath) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 991, in _gcd_import File "", line 930, in _sanity_check ValueError: Empty module name

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "plugins/service_container.py", line 17, in srv = roxcomposer.service_loader.make_service_instance(classpath, args) File "/home/christian/.local/lib/python3.6/site-packages/roxcomposer/service_loader.py", line 30, in make_service_instance c = load_class(classpath) File "/home/christian/.local/lib/python3.6/site-packages/roxcomposer/service_loader.py", line 19, in load_class raise exceptions.ConfigError('Failed to load the specified logging class: {} - {}'.format(classpath, e)) from e roxcomposer.exceptions.ConfigError: Failed to load the specified logging class: Hallo - Empty module name

hecktor-droxit commented 5 years ago

See issue https://github.com/droxit/roxcomposer/issues/102.