MuleSoft · Apache Kafka Connector
KAFKA:CONNECTIVITY
KAFKA:CONNECTIVITY means the Kafka connector could not establish a connection to the brokers, or the connection failed. Check the bootstrap servers, network access and security settings in the connector configuration.
VerifiedLast verified
01Error text
Error type: KAFKA:CONNECTIVITY02Likely causes
- Either a connection could not be established or there is a connectivity error.
03How to fix it
- Check the bootstrap server addresses and ports in the connector configuration.
- Confirm the Mule runtime can reach the brokers over the network.
- Check the security settings (SSL, SASL) match what the brokers expect.
- Add a reconnection strategy if brokers can be briefly unavailable.
04Fix it with AI
Copy this prompt into Claude Code, ChatGPT or any AI assistant. It already holds the error, the likely causes and the fix steps, so the assistant starts from what is known instead of guessing.
I'm getting this error in MuleSoft Anypoint (Apache Kafka Connector):
Error type: KAFKA:CONNECTIVITY
What it usually means: KAFKA:CONNECTIVITY means the Kafka connector could not establish a connection to the brokers, or the connection failed. Check the bootstrap servers, network access and security settings in the connector configuration.
Likely causes:
- Either a connection could not be established or there is a connectivity error.
Fix steps that usually work:
1. Check the bootstrap server addresses and ports in the connector configuration.
2. Confirm the Mule runtime can reach the brokers over the network.
3. Check the security settings (SSL, SASL) match what the brokers expect.
4. Add a reconnection strategy if brokers can be briefly unavailable.
Help me fix it. If you can read my project files, find where this error comes from. If not, ask me for what you need (the failing step, its input, the connection or config). Check the likely causes one by one, tell me which one it is and why, then give me the exact change to make. Do not change anything in production. Reference: https://ipaaserrors.com/mulesoft/kafka-connectivityNothing is sent anywhere from this page. Read what the assistant suggests before you apply it.
iNotes
The MuleSoft troubleshooting page states the cause of this error type but gives no step-by-step fix. The steps above follow directly from that cause.
05Official documentation
→Related errors
- KAFKA:AUTHENTICATION_ERRORKAFKA:AUTHENTICATION_ERROR means the Kafka brokers rejected the connector's credentials. Check the authentication mechanism and credentials in the connector's security configuration.
- Kafka: Failed to load SSL keystoreThis Kafka connector error means the configuration could not load the required truststore files from the classpath. Add the truststore files to the main application that uses the Kafka connector configuration.
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 pay estimates