-
Notifications
You must be signed in to change notification settings - Fork 810
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
Fix JsonInput micro-batching support #860
Conversation
raise BadInput( | ||
"Request content-type must be 'application/json' for this " | ||
"BentoService API" | ||
) | ||
|
||
result = func(parsed_json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least it should be func([parsed_json])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be a regression right? Should we consider something like the LegacyImageHandler
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LegacyJsonInput?
Hello @bojiang, Thanks for updating this PR. There are currently no PEP 8 issues detected in this PR. Cheers! 🍻 Comment last updated at 2020-07-01 12:08:00 UTC |
|
||
---> | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls help to refine instructions here @parano
Codecov Report
@@ Coverage Diff @@
## master #860 +/- ##
==========================================
+ Coverage 59.40% 60.71% +1.30%
==========================================
Files 117 118 +1
Lines 7922 7959 +37
==========================================
+ Hits 4706 4832 +126
+ Misses 3216 3127 -89
Continue to review full report at Codecov.
|
* [FIX] JsonInput handle_request * Add LegacyJsonInput * [STYLE] * [STYLE] unused "err" * [STYLE] deprecated decodestring * [CI] pytest version * [CI] Add test LegacyJsonInput * [CI] asyncio tests
Description
Motivation and Context
How Has This Been Tested?
Types of changes
Component(s) if applicable
Checklist:
./dev/format.sh
and./dev/lint.sh
script have passed(instructions).