Hey team - when attempting to load a card via meta...
# ask-metaflow
g
Hey team - when attempting to load a card via metaflow UI I get a data exception that metaflow could not unpack artifact. I noticed this seems to only happen for the flow when the artifact is big.
Copy code
Card of type default is unable to be rendered with arguments None.
Stack trace :  Traceback (most recent call last):
  File "/metaflow/metaflow/datastore/content_addressed_store.py", line 163, in load_blobs
    blob = unpack_code(f)
  File "/metaflow/metaflow/datastore/content_addressed_store.py", line 188, in _unpack_v1
    return f.read()
  File "/metaflow/metaflow_redacted/lib/python3.7/gzip.py", line 287, in read
    return self._buffer.read(size)
  File "/metaflow/metaflow_redacted-64_e27b3daccfa81c5bfd1528fb33d2293fee317aa7/lib/python3.7/gzip.py", line 482, in read
    uncompress = self._decompressor.decompress(buf, size)
  File "/metaflow/metaflow/plugins/cards/card_cli.py", line 163, in raise_timeout
    raise TimeoutError
TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/metaflow/metaflow/plugins/cards/card_cli.py", line 503, in create
    rendered_info = render_card(mf_card, task, timeout_value=timeout)
  File "/metaflow/metaflow/plugins/cards/card_cli.py", line 384, in render_card
    rendered_info = mf_card.render(task)
  File "/metaflow/metaflow/plugins/cards/card_modules/basic.py", line 600, in render
    components=self._components,
  File "/metaflow/metaflow/plugins/cards/card_modules/basic.py", line 340, in render
    self._task, graph=self._graph
  File "/metaflow/metaflow/plugins/cards/card_modules/convert_to_native_type.py", line 98, in __call__
    task_dict["data"], type_infered_objects = self._create_task_data_dict(task)
  File "/metaflow/metaflow/plugins/cards/card_modules/convert_to_native_type.py", line 108, in _create_task_data_dict
    data_object = data.data
  File "/metaflow/metaflow/client/core.py", line 902, in data
    obj = filecache.get_artifact(ds_type, location[6:], meta, *components)
  File "/metaflow/metaflow/client/filecache.py", line 216, in get_artifact
    [name],
  File "/metaflow/metaflow/datastore/task_datastore.py", line 364, in load_artifacts
    for (key, blob) in self._ca_store.load_blobs(to_load.keys()):
  File "/metaflow/metaflow/datastore/content_addressed_store.py", line 166, in load_blobs
    "Could not unpack artifact '%s': %s" % (path, e)
metaflow.datastore.exceptions.DataException: Could not unpack artifact 'redacted/data/e4/e4b47794c3c7916ec33e01f6aea76935ab9e3734':
1
s
Thanks for reporting the issue. We will get this addressed
h
Hey can you increase the
timeout
in the @card decorator's arguments?
g
Yes. Let me try that.
s
@gifted-musician-70702 - any updates on this?
g
I should know later today or tomorrow. Will update here. Thank you!
c
Is there any update on this? I’m seeing a similar error. As a matter of fact, I think the initial error message
Card of type default is unable to be rendered with arguments None.
is misleading, as it seems to say that you can’t make default cards without arguments, when it means to say that it failed this time.
h
Hey james can you share the stack trace ?
We surely can work on improving the messaging! I also wanted to figure out the root cause of the error. That error is generally thrown when a card has some glitch during rendering such as pickle serialization failures, timeouts, bugs in card render code itself etc. Do yo know when you are getting this error ?