MuleSoft · HTTP Connector

HTTP:BASIC_AUTHENTICATION

Short answer

HTTP:BASIC_AUTHENTICATION means a request did not carry basic authentication, or carried the wrong credentials. Send a valid basic authentication header with the request.

VerifiedLast verified

01Error text

MuleSoft error
Error type: HTTP:BASIC_AUTHENTICATION

02Likely causes

  • The request operation lacks basic authentication.
  • The basic authentication credentials are wrong.

03How to fix it

  1. Configure basic authentication on the HTTP Request configuration that calls the protected endpoint.
  2. Check the user name and password values for this environment.
  3. Turn on HTTP wire logging to see the exact request and response: in log4j2.xml, enable the logger org.mule.service.http.impl.service.HttpMessageLogger at DEBUG level. Confirm the Authorization header is sent.
  4. Handle the failure with an error handler of type HTTP:BASIC_AUTHENTICATION.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.