Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core does not handle missing requirements on plugins #302

Open
TerrifiedBug opened this issue Feb 16, 2022 · 0 comments
Open

Core does not handle missing requirements on plugins #302

TerrifiedBug opened this issue Feb 16, 2022 · 0 comments

Comments

@TerrifiedBug
Copy link
Contributor

When a plugin is installed with missing requirements, there is no clear way to know that the reason is due to missing requirements. The plugin just passes with a True RC 0 but it does error on failing to load the class on the core output.

Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: return self.view_functionsrule.endpoint
Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: File "/opt/jimi/jimi_core/core/debug.py", line 255, in getFlowDebugSessionFlowExecutionList
Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: for executionKey, executionValue in flowDebugSession[sessionID].flowList[eventID]["execution"].items():
Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: KeyError: '004089d2-67dd-466b-a247-47de93b85008'
Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: Error unable to find class='5ed8e9f5aad8c141e83f9496', className='_GitClone', classType='_action', location='plugins.git.models.action' : FrameInfo(frame=<frame object at 0x4842e28>, filename='/opt/jimi/jimi_core/core/model.py', lineno=34, function='classObject', code_context=[' jimi.logging.debug("Error unable to find class='{0}', className='{1}', classType='{2}', location='{3}'".format(self.classID,self.className,self.classType,self.location),-1)\n'], index=0)
Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: Exception on /api/1.0/debug/1422bcbc-d551-4964-8ad3-f527fbc87ab3/004089d2-67dd-466b-a247-47de93b85008/executionList/ [GET]
Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: Traceback (most recent call last):
Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2447, in wsgi_app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant