Unable to create a new project

Solved!
Posted in General by Simone Curzi Sat Aug 19 2017 14:27:51 GMT+0000 (UTC)·3·Viewed 204 times

I have just installed a Docker image and I have successfully managed to authenticate to it. When I try to create a new project, I receive a generic error on the page which corresponds to the following logged error in the Console: 2017-08-19 14:15:45,914 - skf.api.restplus - ERROR - An unhandled exception occurred. Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/lib/python3.6/site-packages/flask_restplus/api.py", line 313, in wrapper resp = resource(*args, **kwargs) File "/usr/lib/python3.6/site-packages/flask/views.py", line 84, in view return self.dispatch_request(*args, **kwargs) File "/usr/lib/python3.6/site-packages/flask_restplus/resource.py", line 44, in dispatch_request resp = meth(*args, **kwargs) File "/usr/lib/python3.6/site-packages/flask_restplus/marshalling.py", line 101, in wrapper resp = f(*args, **kwargs) File "/skf-flask/skf/api/questions_pre/endpoints/question_pre_store.py", line 28, in put result = store_pre_questions(user_id, data) File "/skf-flask/skf/api/questions_pre/business.py", line 22, in store_pre_questions val_num(question[0]['projectID']) IndexError: list index out of range [2017-08-19 14:15:45,914] ERROR in app: Exception on /api/questions_pre/store [PUT] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/lib/python3.6/site-packages/flask_restplus/api.py", line 313, in wrapper resp = resource(*args, **kwargs) File "/usr/lib/python3.6/site-packages/flask/views.py", line 84, in view return self.dispatch_request(*args, **kwargs) File "/usr/lib/python3.6/site-packages/flask_restplus/resource.py", line 44, in dispatch_request resp = meth(*args, **kwargs) File "/usr/lib/python3.6/site-packages/flask_restplus/marshalling.py", line 101, in wrapper resp = f(*args, **kwargs) File "/skf-flask/skf/api/questions_pre/endpoints/question_pre_store.py", line 28, in put result = store_pre_questions(user_id, data) File "/skf-flask/skf/api/questions_pre/business.py", line 22, in store_pre_questions val_num(question[0]['projectID']) IndexError: list index out of range 2017-08-19 14:15:45,915 - werkzeug - INFO - 127.0.0.1 - - [19/Aug/2017 14:15:45] "PUT /api/questions_pre/store HTTP/1.1" 500 - Please help/advise.
Foobar
Aug 19, 2017

Hi Simone,

I just tried it myself but i cannot reproduce it, what browser are you using for example?
Maybe can you join the chat channel so we help you with he problem:

https://gitter.im/Security-Knowledge-Framework/Lobby

Greetz,
Glenn

Simone Curzi
Aug 20, 2017

I tried again, using the Admin: it works.
I was using another user to create the Project. I suspect this would the reason why I have had the issue. I will keep testing.

Thank you,
Simone

Foobar
Aug 20, 2017

aah check, good to hear it's working now for you.
Please do we love to hear feedback and/or improvements :)

Greetz,
Glenn


Foobar marked this as solved
Markdown is allowed