How to Call TiCDC OpenAPI Interface in Java to Create a Synchronization Task: Is There a Reference Demo?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 如何在java里面调用ticdc openapi的接口实现创建同步任务 有参考的demo吗

| username: TiDBer_8xv3YpMO

【TiDB Usage Environment】Testing/
【TiDB Version】
6.5
【Resource Configuration】
Tiflow 6.5 deployed on Linux
【Attachment: Screenshot/Log/Monitoring】

| username: TiDBer_8xv3YpMO | Original post link

org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.179:80 [/192.168.1.179] failed: Connection refused: connect. Sending an HTTP request to the Tiflow delete task interface in Java shows a connection refused error. What could be the issue? The firewall has already been turned off.

| username: Min_Chen | Original post link

Hello,
The default port should be 8300. Please correct it and try again.