Skip to content

Unexpected return code 204 #57

@dbousamra

Description

@dbousamra

Not sure if it's just me, but I am receiving this when trying to download a study.

I feel like this might be a regression in the API? I've changed nothing on my end, and it's always worked.

Traceback (most recent call last):
  File "/Users/dbousamra/Library/Python/3.8/bin/dcmweb", line 8, in <module>
    sys.exit(main())
  File "/Users/dbousamra/Library/Python/3.8/lib/python/site-packages/dcmweb/command_line.py", line 66, in main
    fire.Fire(host_wrapper)
  File "/Users/dbousamra/Library/Python/3.8/lib/python/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/Users/dbousamra/Library/Python/3.8/lib/python/site-packages/fire/core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/Users/dbousamra/Library/Python/3.8/lib/python/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/Users/dbousamra/Library/Python/3.8/lib/python/site-packages/dcmweb/dcmweb.py", line 126, in retrieve
    execute_file_transfer_futures(self._files_to_download(
  File "/Users/dbousamra/Library/Python/3.8/lib/python/site-packages/dcmweb/dcmweb.py", line 35, in execute_file_transfer_futures
    for future_arguments in futures_arguments:
  File "/Users/dbousamra/Library/Python/3.8/lib/python/site-packages/dcmweb/dcmweb.py", line 155, in _files_to_download
    page_content = self.requests.search_instances_by_page(
  File "/Users/dbousamra/Library/Python/3.8/lib/python/site-packages/dcmweb/requests_util.py", line 170, in search_instances_by_page
    text = self.request(
  File "/Users/dbousamra/Library/Python/3.8/lib/python/site-packages/dcmweb/requests_util.py", line 127, in request
    raise NetworkError("Unexpected return code {}\n {}".format(
dcmweb.requests_util.NetworkError: Unexpected return code 204

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions