Failed to get session data

Looks like the problem here is most likely that these data files are very large, and at “typical” Internet download speeds, the time that it takes to get the files is greater than an internal default timeout limit. In the long-term, we will increase the default timeout value and make a change to AllenSDK to make it easier to pass in your own timeout value. In the short-term, here is a code snippet that will show how you can set your own timeout value so that the files will have a chance to download. In this example, I have set the value to 50 minutes; you can change that value as needed for your system.

import os
from allensdk.brain_observatory.ecephys.ecephys_project_cache import EcephysProjectCache
from allensdk.brain_observatory.ecephys.ecephys_project_api import EcephysProjectWarehouseApi
from allensdk.brain_observatory.ecephys.ecephys_project_api.rma_engine import RmaEngine
data_directory = 'C:/allensdk_data'
manifest_path = os.path.join(data_directory, "manifest.json")
session_id = 721123822
cache = EcephysProjectCache(
  manifest=manifest_path,
  fetch_api=EcephysProjectWarehouseApi(RmaEngine(
    scheme="http",
    host="api.brain-map.org",
    timeout=50 * 60  #set timeout to 50 minutes
  ))
)
session = cache.get_session_data(session_id)