无法与码头化生产者一起生产到卡夫卡

问题描述 投票:0回答:1

有没有人遇到这个错误?

io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: (sun.net.www.protocol.http.HttpURLConnection$HttpInputStream); line: 1, column: 2]; error code: 50005\n\tat io.confluent.kafka.schemaregistry.client.rest.RestService.sendHttpRequest(RestService.java:226)

当我尝试将消息发送到kafka时,我有这个堆栈跟踪。

仅供参考,kafka堆栈(kaka,schema-registry和zookeeper)和生产者使用docker-compose文件进行码头化。

任何帮助表示赞赏!

apache-kafka docker-compose avro confluent-schema-registry producer
1个回答
0
投票

我正在使用代理,我将我的IP地址添加到http.nonProxyHosts并且它可以工作。问题是模式注册表返回HTML而不是JSON,这就是为什么我有这个恼人的错误。

© www.soinside.com 2019 - 2024. All rights reserved.