Keploy Proxy Fails to Connect to gRPC Server with "dial tcp 127.0.0.1:6789: connect: connection refused" Error #2297
-
gRPC Keploy Integration IssueProblem DescriptionThis project is encountering issues with integrating Keploy for capturing tests on a gRPC server. While the gRPC server works correctly on port Error LogsWhen starting the server with Keploy, the following errors are encountered: 🐰 Keploy: 2024-09-22T22:31:17+05:30 ERROR failed to dial the conn to destination server {"Client IP Address": "127.0.0.1:46752", "Client ConnectionID": "0", "Destination IP Address": "127.0.0.1:6789", "Destination ConnectionID": "1", "proxy port": 16789, "server address": "127.0.0.1:6789", "error": "dial tcp 127.0.0.1:6789: connect: connection refused"}
🐰 Keploy: 2024-09-22T22:31:20+05:30 ERROR failed to dial the conn to destination server {"Client IP Address": "127.0.0.1:46766", "Client ConnectionID": "4", "Destination IP Address": "127.0.0.1:6789", "Destination ConnectionID": "5", "proxy port": 16789, "server address": "127.0.0.1:6789", "error": "dial tcp 127.0.0.1:6789: connect: connection refused"} Image Link :- https://drive.google.com/file/d/1PNkN5hjydaeEwAgbNSqlnlV6qcATdj8C/view Current Setup
The gRPC server works perfectly when run without Keploy, but using Keploy for recording produces connection refused errors. Steps to Reproduce
Expected BehaviorKeploy should correctly intercept gRPC traffic to the server running on port 8000 and successfully capture requests and responses. Project Structure
What Has Been Tried
References
Questions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Issue ResolutionThe issue has been resolved. I was using an older version of the Go SDK, which is why it was trying to connect to a local server. I updated to the newer version using the following command: go get -u github.com/keploy/go-sdk/v2 Now, the server is running properly; however, I am still unable to generate test cases. For now, I am marking this discussion as complete, but I will update this section on whether I was able to resolve this issue. |
Beta Was this translation helpful? Give feedback.
Issue Resolution
The issue has been resolved. I was using an older version of the Go SDK, which is why it was trying to connect to a local server. I updated to the newer version using the following command:
Now, the server is running properly; however, I am still unable to generate test cases. For now, I am marking this discussion as complete, but I will update this section on whether I was able to resolve this issue.