Despite successfully establishing a client connection, you're encountering an error when attempting to search Dgraph. The error message received is:
1 |
|
This intermittent issue can be attributed to a variety of factors, but a prevalent cause is a TLS configuration discrepancy.
To address this issue, verify that TLS options are configured correctly on the client:
1 2 3 4 5 6 7 8 |
|
Additionally, ensure that client certificates are being used during the client connection. By adjusting the TLS configurations and ensuring proper certificate usage, you should no longer encounter the "connection closed before server preface received" error.
The above is the detailed content of Why is my Dgraph connection failing with 'connection closed before server preface received'?. For more information, please follow other related articles on the PHP Chinese website!