For @candleindark effort on testing linkml produced jsonschema driven meditor, I was trying to find the script we had to sweep populate staging (now sandbox) with dandisets based on the ones in the main instance metadata for testing etc... failed to find that script yet (might be on drogon) but found helper command I thought I could use -- the update-dandiset-from-doi but it errored out:
❯ DANDI_DEVEL=1 dandi service-scripts update-dandiset-from-doi -d 216023 -e overwrite -F all -i dandi-sandbox https://doi.org/10.48324/dandi.001827/0.260505.1322
Traceback (most recent call last):
File "/home/yoh/proj/dandi/dandi-cli/.venv/lib/python3.13/site-packages/requests/models.py", line 978, in json
return complexjson.loads(self.text, **kwargs)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/json/__init__.py", line 352, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/usr/lib/python3.13/json/decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/json/decoder.py", line 363, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/yoh/proj/dandi/dandi-cli/.venv/bin/dandi", line 10, in <module>
sys.exit(main())
~~~~^^
File "/home/yoh/proj/dandi/dandi-cli/.venv/lib/python3.13/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/yoh/proj/dandi/dandi-cli/.venv/lib/python3.13/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
File "/home/yoh/proj/dandi/dandi-cli/.venv/lib/python3.13/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/yoh/proj/dandi/dandi-cli/.venv/lib/python3.13/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/yoh/proj/dandi/dandi-cli/.venv/lib/python3.13/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yoh/proj/dandi/dandi-cli/.venv/lib/python3.13/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/home/yoh/proj/dandi/dandi-cli/dandi/cli/cmd_service_scripts.py", line 268, in update_dandiset_from_doi
doidata = doiclient.get(doi)
File "/home/yoh/proj/dandi/dandi-cli/dandi/dandiapi.py", line 332, in get
return self.request("GET", path, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yoh/proj/dandi/dandi-cli/dandi/dandiapi.py", line 312, in request
return result.json()
~~~~~~~~~~~^^
File "/home/yoh/proj/dandi/dandi-cli/.venv/lib/python3.13/site-packages/requests/models.py", line 982, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
For @candleindark effort on testing linkml produced jsonschema driven meditor, I was trying to find the script we had to sweep populate staging (now sandbox) with dandisets based on the ones in the main instance metadata for testing etc... failed to find that script yet (might be on drogon) but found helper command I thought I could use -- the
update-dandiset-from-doibut it errored out: