Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on missing dataset_timestamp parameter when running Getting_Started_with_WhyLabsV1 in GuestSession #1558

Closed
1 task done
jamie256 opened this issue Sep 3, 2024 · 0 comments · Fixed by #1559
Closed
1 task done

Comments

@jamie256
Copy link
Contributor

jamie256 commented Sep 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant