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

Unexpected return code 204 #57

Open
dbousamra opened this issue Oct 6, 2022 · 0 comments
Open

Unexpected return code 204 #57

dbousamra opened this issue Oct 6, 2022 · 0 comments

Comments

@dbousamra
Copy link

dbousamra commented Oct 6, 2022

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
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