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
When post a bad request that should be a json, how can I define the response for the client? It seems just reply "500 Internal Server Error" now. When the client post a request that is not json format, how can I tell the client with the response?
If I do not set the -H "Content-Type: application/json", but the request data is standard json format, the payload in the server is empty. I just print the payload in the predict :
-H "Content-Type: application/json"
, but the request data is standard json format, the payload in the server is empty. I just print thepayload
in thepredict
:the print result are below:
why the body get by the server is empty?
Thanks a lot!
The text was updated successfully, but these errors were encountered: