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
Print Response? option checked and receive response code of >=400.
Expected Behavior:
Fail rundeck job with a Step exception.
The error we would be expecting is: Error when sending request: {response body}
Actual behavior:
Fail rundeck job with a IOException
The actual error we are getting: Error when sending request: Attempted read from closed stream.
Reason:
getPageContent function reads from the response entity, causing the second read, to fail because once read from, the stream lose the contents so it won't be able to be read from again.
Possible solution:
Is to set a body available to all of the try block, that way it could be read from once, and then the second read would just need to check if the body has been set already, if not read from the response.
The text was updated successfully, but these errors were encountered:
Scenario:
Print Response?
option checked and receive response code of >=400.Expected Behavior:
Fail rundeck job with a Step exception.
The error we would be expecting is:
Error when sending request: {response body}
Actual behavior:
Fail rundeck job with a IOException
The actual error we are getting:
Error when sending request: Attempted read from closed stream.
Reason:
getPageContent function reads from the response entity, causing the second read, to fail because once read from, the stream lose the contents so it won't be able to be read from again.
Possible solution:
Is to set a body available to all of the try block, that way it could be read from once, and then the second read would just need to check if the body has been set already, if not read from the response.
The text was updated successfully, but these errors were encountered: