-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Describe the bug
When I push a single file and don't supply META, I get the error during job execution that object of type 'NoneType' has no len(). Seems like...
To Reproduce
Steps to reproduce the behavior:
forge init- git lfs track a new data file
- commit the data file
- commit the changes to .gitattributes
- Error below
[out] {"APIEndpoint":"https://caliper-training.ohsu.edu/","bucketName":"cbds","file":null,"ghCommitHash":"3adcca823c2c
9f968049b5220ba546d7e016fca8","ghRepoUrl":"[source.ohsu.edu/CBDS/forge-test.git","ghToken":"github_pat_11AAAADOY0EdulB](http://source.ohsu.edu/CBDS/forge-test.git%22,%22ghToken%22:%22github_pat_11AAAADOY0EdulB)
JBLDYRg_kZUomjtPau4wuAAAy1EL0ZT9e20Hg95IZWRuHbr3stdFNFB72OUJcSDsuek","ghUserName":"quinnwai","method":"put","profile"
:"local","projectId":"cbds-test_qww"}An unexpected error occurred in _put: object of type 'NoneType' has no len()
ERROR:root:An unexpected error occurred in _put: object of type 'NoneType' has no len()
INFO:root:[out] {"[user":"wongq@ohsu.edu](mailto:user%22:%22wongq@ohsu.edu)","files":[],"logs":["HAS RESOURCE /programs/cbds","HAS RESOURCE /programs/cbd
s/projects","HAS SERVICE create on resource /programs/cbds/projects/test_qww","An unexpected error occurred in _put:
object of type 'NoneType' has no len()"]}[out] {"[user":"wongq@ohsu.edu](mailto:user%22:%22wongq@ohsu.edu)","files":[],"logs":["HAS RESOURCE /programs/cbds","HAS RESOURCE /programs/cbds/projects
","HAS SERVICE create on resource /programs/cbds/projects/test_qww","An unexpected error occurred in _put: object of
type 'NoneType' has no len()"]}Traceback (most recent call last):
File "/root/fhir_import_export.py", line 375, in _put
validated_data = _validate_and_extract_input(input_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/fhir_import_export.py", line 302, in _validate_and_extract_input
if len(files) > 0:
^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/fhir_import_export.py", line 609, in
main()
File "/root/fhir_import_export.py", line 600, in main
_put(hostname, input_data, output, program, project, user)
File "/root/fhir_import_export.py", line 407, in _put
_handle_error(output, f"An unexpected error occurred in _put: {e}", Exception)
File "/root/fhir_import_export.py", line 283, in _handle_error
raise exception_type(message)
Exception: An unexpected error occurred in _put: object of type 'NoneType' has no len()
Expected...
push updates all commits not just the most recent commit.
Environment (please complete the following information):
- Forge from Add MVP tools #1
Additional context
Add any other context about the problem here.