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

RuntimeError: Response has status code 502 not (200,) #206

Open
jolespin opened this issue Mar 11, 2024 · 0 comments
Open

RuntimeError: Response has status code 502 not (200,) #206

jolespin opened this issue Mar 11, 2024 · 0 comments

Comments

@jolespin
Copy link

Here's my version:

$ osf --version
osf 0.0.5

I'm running the following command:

FP="osfstorage/Eukaryotic_TOPAZ_MAGs/TOPAZ_MSS1_E018/TOPAZ_MSS1_E018.fna.gz"
FN=$(basename $FP)
osf -p c9hj5 fetch $FP osf_download/${FN}

I'm getting the following error:

osfstorage/Eukaryotic_TOPAZ_MAGs/TOPAZ_MSS1_E018/TOPAZ_MSS1_E018.fna.gz
Traceback (most recent call last):
  File "/home/jovyan/sandbox/conda_environments/jolespin/cdl_environments/osfclient_env/bin/osf", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/jovyan/sandbox/conda_environments/jolespin/cdl_environments/osfclient_env/lib/python3.12/site-packages/osfclient/__main__.py", line 120, in main
    exit_code = args.func(args)
                ^^^^^^^^^^^^^^^
  File "/home/jovyan/sandbox/conda_environments/jolespin/cdl_environments/osfclient_env/lib/python3.12/site-packages/osfclient/cli.py", line 98, in wrapper
    return_value = f(cli_args)
                   ^^^^^^^^^^^
  File "/home/jovyan/sandbox/conda_environments/jolespin/cdl_environments/osfclient_env/lib/python3.12/site-packages/osfclient/cli.py", line 216, in fetch
    project = osf.project(args.project)
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jovyan/sandbox/conda_environments/jolespin/cdl_environments/osfclient_env/lib/python3.12/site-packages/osfclient/api.py", line 33, in project
    type_ = self.guid(project_id)
            ^^^^^^^^^^^^^^^^^^^^^
  File "/home/jovyan/sandbox/conda_environments/jolespin/cdl_environments/osfclient_env/lib/python3.12/site-packages/osfclient/api.py", line 41, in guid
    return self._json(self._get(self._build_url('guids', guid)), 200)['data']['type']
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jovyan/sandbox/conda_environments/jolespin/cdl_environments/osfclient_env/lib/python3.12/site-packages/osfclient/models/core.py", line 61, in _json
    raise RuntimeError("Response has status "
RuntimeError: Response has status code 502 not (200,)

I've verified it exists:
https://osf.io/c9hj5/

image

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