Closed vianamp closed 6 years ago
Is this a local database or prod?
I ask because there is a known issue with local databases taking two cycles to fully initialize that I am looking it. This would cause this same error.
It is prod.
Ahhh okay, I will patch through a "No Dataset with that Id" change as well as I just found the fix for the local database issue. This will be in v1.0.10 as the ingest changes also need to go through. Probably by end of day.
Actually, your issue isn't that the dataset doesn't exist. I forgot but I had already added a DATASET_NOT_FOUND
error. Your issue was due to the same issue plaguing local which is that you attempted to get_dataset(1)
. The first dataset to enter any DSDB will always be an empty algorithm parameters dictionary. Because it is empty when it is attempt to reconstruct it fails because division by zero (zero keys means zero items to iterate through).
Hi guys.
When I do
prod.get_dataset(x)
withx
corresponding to a non-existing dataset (e.g.x=1
), I get this error:Instead of crashing badly like this, is there a way to return something that we can work on? For instance a
None
value.Also, is there a function for previewing the size of a dataset before actually downloading it?