Ansible WinRMTransportError Bad HTTP response returned from server. Code 413

Solution Verified - Updated -

Issue

  • Running a playbook against a Windows host with WinRM results in a HTTP 413 error code as below:

    [WARNING]: ERROR DURING WINRM SEND INPUT - attempting to recover:
    WinRMTransportError Bad HTTP response returned from server. Code 413
    
    

Environment

  • Ansible Automation Platform
  • WinRM

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content