Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 调用PD API返回报错
[TiDB Usage Environment] Production Environment
[TiDB Version] v7.5.0
[Encountered Issue: Problem Phenomenon and Impact]
[Resource Configuration] Using pdctl to query PD API, it keeps returning errors, not sure what the reason is
[Attachment: Screenshot/Log/Monitoring]
The corresponding PD node is normal. Can you check the logs for any information?
Compare the actual service ports to see if they are open on this machine…
Yes, TLS is enabled. Please advise on how to access it normally, thank you.
enable_tls: true
This is accessed on the machine where PD is located, with no port restrictions.
At present, there is no effective information.
When using TLS, the documentation requires specifying the authentication files.
Adding the TLS-related parameters has resolved the access issue. Thank you.