-
Notifications
You must be signed in to change notification settings - Fork 173
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
Bad HTTP response returned from server. Code 400 #720
Comments
There is unfortunately not much information provided by WSMan to indicate why the 400 error code was returned by the WSMan service. Just for easier visibility in the future the exception traceback in an easier to read format is
It is curious if this is happening at to finally:
if command_id:
try:
self.protocol.cleanup_command(self.shell_id, command_id)
except Exception as e:
display.warning(f"Failure when cleaning up the WinRM command - attempting to continue: {type(e).__name__} {e}") This may not be possible if you don't have permission, an alternative option is run from a virtual environment where you have full control over the install files and can easily blow away the changes once done testing. An alternative is to look at using the psrp connection plugin. This plugin also uses WSMan as the underlying connection but on a different type of remote shell that is less susceptible to race conditions and problems stemming from the host being under load that |
SUMMARY
Using the following setting, win_group_membership intermittently fails with 'Bad HTTP response returned from server. Code 400" error.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
pretty-name: Red Hat Enterprise Linux 8.9 (Ootpa)
STEPS TO REPRODUCE
EXPECTED RESULTS
No error
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: