You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But calling async_predictor.predict(data=...) requires name to be non-null, i.e._upload_data_to_s3 calls name_from_base on self.name which fails if name is None (i.e. the default)
Describe the bug
The
name
argument of theAsyncPredictor.__init__.py
is optional with default=Nonesagemaker-python-sdk/src/sagemaker/predictor_async.py
Line 34 in b535ed8
But calling
async_predictor.predict(data=...)
requires name to be non-null, i.e._upload_data_to_s3
callsname_from_base
onself.name
which fails if name is None (i.e. the default)sagemaker-python-sdk/src/sagemaker/predictor_async.py
Line 171 in b535ed8
To reproduce
TypeError: 'NoneType' object is not subscriptable
Expected behavior
The name field of
AsyncPredictor
should have a "non-None" default (a guid, or the endpoint name?)System information
A description of your system. Please provide:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: