Discussions
API Runtime Error
Hi Dewey,
I'm trying to download data using the API. I ran the following command in Terminal (I've hidden my API key):
uvx --python 3.13 --from deweypy dewey --api-key [MY_API_KEY_HERE] --download-directory /Users/jao/Documents/thesis/data/raw speedy-download prj_zsqjgka7__cdst_ixa877o4yqxeehtn
I then get a long error that ends with the following:
RuntimeError: Expecting a 301 or 302 redirect from Dewey at the time of writing.
I've been diagnosing with ChatGPT but I'm pretty stuck. I've tried getting a new API key, but same problem. In case it's helpful, here is the result of one diagnostic test that ChatGPT asked for:
curl -I "https://downloads.deweydata.io/api/v2/downloads/[link_from_error_msg]"
Output had the following header:
HTTP/2 200
Thanks!