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

[Serve][AIR] Fix pandas_read_json compatibility issue #26494

Merged
merged 2 commits into from
Jul 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[Serve][AIR] Fix pandas_read_json compatibility issue
  • Loading branch information
simon-mo committed Jul 13, 2022
commit 8c1c45639fd90e468221464927010b1deca251ab
2 changes: 1 addition & 1 deletion python/ray/serve/http_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ async def pandas_read_json(raw_request: Request):
import pandas as pd

raw_json = await raw_request.body()
return pd.read_json(raw_json, **raw_request.query_params)
return pd.read_json(raw_json.decode("utf-8"), **raw_request.query_params)