-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Reproduce
- If user tries to debug or run files before building
Then server will respond with error
As there is no check that it will check whether there is build files or not and will fall in error
[2023-02-19 17:12:50,094] ERROR in app: Exception on /debug/sample [POST]
Traceback (most recent call last):
File "C:\Users\Nitika\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\app.py", line 2070, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\Nitika\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\app.py", line 1515, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\Nitika\AppData\Local\Programs\Python\Python310\lib\site-packages\flask_cors\extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "C:\Users\Nitika\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\app.py", line 1513, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\Nitika\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\app.py", line 1499, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "F:\GSOC\emori-bmi-gsoc\concore\concore\fri\server\main.py", line 92, in debug
proc = call(["debug"],shell=True , cwd=dir_path)
File "C:\Users\Nitika\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\Nitika\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in init
self._execute_child(args, executable, preexec_fn, close_fds,
bprocess.py", line 1438, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
NotADirectoryError: [WinError 267] The directory name is invalid
Should be check at https://github.com/ControlCore-Project/concore/blob/main/fri/server/main.py#L80
this issue can be linked with https://github.com/ControlCore-Project/concore/issues @pradeeban