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
POST [stubs]/foo: Error when extracting POST body: java.util.NoSuchElementException, returning null..
In debug mode, the raw HTTP request is parsed and dumped to stdout. Later, the code reads the request input stream to process the post body and the stream has already been drained to perform the previous dump.
The error occurs in the extractPostRequestBody method of main/java/by/stub/utils/HandlerUtils.java
The text was updated successfully, but these errors were encountered:
Interestingly, it is not because of extractPostRequestBody:
When dumping raw HttpServletRequest to console during --debug, I am calling request.getParameterNames(). Jetty's Request implementing the HttpServletRequest would eventually call the request.getInputStream() without me realizing
given the endpoint:
running with
--debug
causes this error:In debug mode, the raw HTTP request is parsed and dumped to stdout. Later, the code reads the request input stream to process the post body and the stream has already been drained to perform the previous dump.
The error occurs in the
extractPostRequestBody
method ofmain/java/by/stub/utils/HandlerUtils.java
The text was updated successfully, but these errors were encountered: