whylabs/whylogs

Error on missing dataset_timestamp parameter when running Getting_Started_with_WhyLabsV1 in GuestSession

Closed this issue · 0 comments

Description

The example notebook: Getting_Started_with_WhyLabsV1.ipynb when run in anonymous guest session hits the following error:

Failed to upload profile: LogAsyncRequest.__init__() missing 1 required positional argument: 'dataset_timestamp'

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/whylogs/api/whylabs/session/notebook_logger.py", line 90, in notebook_session_log
    result = session.upload_batch_profile(result_set)
  File "/usr/local/lib/python3.10/dist-packages/whylogs/api/whylabs/session/session.py", line 183, in upload_batch_profile
    request = LogAsyncRequest(datasetTimestamp=timestamp, dataset="model-1", segment_tags=[])
  File "/usr/local/lib/python3.10/dist-packages/whylabs_client/model_utils.py", line 46, in wrapped_init
    return fn(_self, *args, **kwargs)
TypeError: LogAsyncRequest.__init__() missing 1 required positional argument: 'dataset_timestamp'

Suggestions

Need to update the parameter name to match the expectation of whylabs-client in LogAsyncRequest