Skip to content

Unable to publish a single file with no META #3

@quinnwai

Description

@quinnwai

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:

  1. forge init
  2. git lfs track a new data file
  3. commit the data file
  4. commit the changes to .gitattributes
  5. 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):

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions