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
{{ message }}
Repository navigation
TypeError: read_json() got an unexpected keyword argument 'header' #189
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'
Activity
nasxisbest commentedon May 20, 2025
This doesn't necessarily aids the issue, but definitely makes it easier to debug for devs: #190