---
schema_version: "1"
id: ea851c184b1750a053fa70d3d62baf4ddbe555becfe0c8e227a7debd67ed2984
title: Authentication Errors
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/anypoint-code-builder/troubleshoot-authentication-errors.md
canonical_url: https://docs.mulesoft.com/anypoint-code-builder/troubleshoot-authentication-errors
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 9f6012998a263610189332ec96bf78bd636690d75398bd3b6543dddf1a3a4645
description: MuleSoft Documentation Site
latest: true
---
---
product: Anypoint Code Builder
version: master
---

# Authentication Errors

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Authentication errors sometimes occur when you attempt to perform actions that require a connection
to Anypoint Platform or to services that Anypoint Code Builder relies on.

## Failed to Authenticate to Git

All commands that involve `git` actions, such as publishing to Exchange and committing changes to an
API specification, require authentication with the correct Anypoint Platform host cloud. If
authentication fails, the action throws this VS Code error:

Failed to authenticate to git remote

To address this issue, cancel the error notification, and ensure that Anypoint Code Builder is set
to the correct region for your project and that you are logged in to Anypoint Platform.

## See Also

- [Known Issues](https://help.salesforce.com/s/issues)
