ModelError: Received server error (500) from primary with message "read_json() got an unexpected keyword argument 'header'
Traceback (most recent call last):
File "/opt/conda/lib/python3.11/site-packages/sagemaker_inference/transformer.py", line 150, in transform
result = self._run_handler_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/sagemaker_inference/transformer.py", line 280, in _run_handler_function
result = func(*argv)
^^^^^^^^^^^
File "/opt/ml/model/code/tabular_serve.py", line 55, in transform_fn
data = _read_with_fallback(pd.read_json, buf, column_names)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/ml/model/code/tabular_serve.py", line 141, in _read_with_fallback
data = read_func(buf, header=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: read_json() got an unexpected keyword argument 'header'
Exact place where issue occurs:
autogluon-cloud/src/autogluon/cloud/scripts/sagemaker_scripts/tabular_serve.py
Line 141 in f515ec2
Afaik,
headerargument is only available inread_csv. Will try to fix this if this will become a blocker.