Discussions

Ask a Question
Back to all

400 error when downloading the veraset home visit data

Hi,

I previously ran into the 400 error when attempting to download the veraset visit data. While that is fixed, I still run into the same issue when trying to download the home and work visit data.

Traceback (most recent call last):
  File "/data_1/albert/zz_lifestyle/download.py", line 26, in <module>
    urls = get_dataset_files(
           ^^^^^^^^^^^^^^^^^^
  File "/home/albert/anaconda3/envs/dewey/lib/python3.12/site-packages/deweypy/download/synchronous.py", line 481, in get_dataset_files
    response = api_request(
               ^^^^^^^^^^^^
  File "/home/albert/anaconda3/envs/dewey/lib/python3.12/site-packages/deweypy/download/synchronous.py", line 417, in api_request
    response.raise_for_status()
  File "/home/albert/anaconda3/envs/dewey/lib/python3.12/site-packages/httpx/_models.py", line 829, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://api.deweydata.io/api/v1/external/data/prj_6rg3whup__fldr_d7cqgtcj3nyi4usp/files?page=1&partition_key_after=2024-02-01&partition_key_before=2024-02-31'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400