You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a PhD student working on metrics to assist developers in discovering security vulnerabilities in software. I am using Nameko to develop a number of microservices to collect these metrics from large projects. I am migrating the services I have developed so far to use the nameko-grpc extension but I encountered a ConnectionResetError from one of the services. I have included two source code files (service.py and client.py) below which shows customized code to demonstrate the implementation. trace.txt contains the stack trace from the service when the exception occurred.
The service in question is an implementation of the collaboration centrality metric. The service depends on another nameko-grpc service (called repository) which stream changes (commits) from a git repository.
The exception seems to be thrown only when the service takes a long time to start streaming the results. Is there something I am missing in the implementation?
Thank you for reporting this @nuthanmunaiah. The problem is that the nameko-grpc entrypoint does not protect against errors on the underlying socket. Really we should catch it and attempt to re-establish the connection.
Hello,
I'm a PhD student working on metrics to assist developers in discovering security vulnerabilities in software. I am using Nameko to develop a number of microservices to collect these metrics from large projects. I am migrating the services I have developed so far to use the nameko-grpc extension but I encountered a
ConnectionResetError
from one of the services. I have included two source code files (service.py
andclient.py
) below which shows customized code to demonstrate the implementation. trace.txt contains the stack trace from the service when the exception occurred.The service in question is an implementation of the collaboration centrality metric. The service depends on another nameko-grpc service (called
repository
) which stream changes (commits) from a git repository.The exception seems to be thrown only when the service takes a long time to start streaming the results. Is there something I am missing in the implementation?
Thank you,
Nuthan Munaiah
service.py
client.py
The text was updated successfully, but these errors were encountered: