Skip to content
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

Connector configuration is invalid and contains the following 1 error(s): MqttException (0) #13

Open
vgopari opened this issue Jul 14, 2024 · 0 comments

Comments

@vgopari
Copy link

vgopari commented Jul 14, 2024

Unable to create Kafka MQTT Connector with the following configuration.

Connector Config:

{
    "name": "mqtt-source",
    "config": {
        "connector.class": "io.confluent.connect.mqtt.MqttSourceConnector",
        "tasks.max": 1,
        "mqtt.server.uri": "tcp://192.168.10.17:1883",
        "mqtt.topics": "shellies/shellyswitch2/info",
        "kafka.topic": "mqtt-ha-events-topic",
        "confluent.topic.bootstrap.servers": "10.0.0.42:9092,10.0.0.43:9092,10.0.0.44:9092",
        "confluent.topic.replication.factor": 1,
        "mqtt.username": "**",
        "mqtt.password": "***"
    }
}

Result:

curl -d @mqtt.json -H "Content-Type: application/json" -X POST http://192.168.10.45:8083/connectors | jq

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   770  100   236  100   534   8278  18732 --:--:-- --:--:-- --:--:-- 27500
{
  "error_code": 400,
  "message": "Connector configuration is invalid and contains the following 1 error(s):\nMqttException (0)\nYou can also find the above list of errors at the endpoint `/connector-plugins/{connectorType}/config/validate`"
}
Pasted Graphic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant