You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some common issues in a manifest.json file, the CLI currently returns some errors which are not very straightforward to the end users. We should try to catch these issues early and return something more useful.
uploaders should be uploader here, otherwise, uploaders should expect an array as the value.
the parser module name is incorrectly referenced: "parser": "mAb_parser:load_data", , the value should be parser:load_data.
The current error for the first one:
[13:24:17] ERROR Invalidate plugin 'mAbsData' because: Error loading manifest: 'str' object has no attribute 'get'
Traceback (most recent call last):
File "/.../biothings.api/biothings/hub/dataplugin/assistant.py", line 169, in load_plugin
self.interpret_manifest(manifest, df.as_posix())
AttributeError: 'str' object has no attribute 'get'
The 2nd one returns this error:
ERROR Invalidate plugin 'mAbsData' because: Error loading manifest: load_data not found in module <module 'mAbsData' (namespace) from ['/tmp/mAbsData']>
Traceback (most recent call last):
File "/.../biothings.api/biothings/hub/dataplugin/assistant.py", line 169, in load_plugin
self.interpret_manifest(manifest, df.as_posix())
AssertionError: load_data not found in module <module 'mAbsData' (namespace) from ['/tmp/mAbsData']>
This error is actually not too bad, at least it points out an invalid mAbsData module correctly. We can see if any room to improve this one as well.
The text was updated successfully, but these errors were encountered:
For some common issues in a
manifest.json
file, the CLI currently returns some errors which are not very straightforward to the end users. We should try to catch these issues early and return something more useful.Here is an example data plugin:
There are two issues:
uploaders
should beuploader
here, otherwise,uploaders
should expect an array as the value."parser": "mAb_parser:load_data",
, the value should beparser:load_data
.The current error for the first one:
The 2nd one returns this error:
This error is actually not too bad, at least it points out an invalid
mAbsData
module correctly. We can see if any room to improve this one as well.The text was updated successfully, but these errors were encountered: