Skip to main content

All Questions

Tagged with
1 vote
2 answers
808 views

ModuleNotFoundError: No module named 'queue_pb2'

I am currently trying to implement grpc with flask (grpc as a server and flask as the client side) but I keep facing this issue: ModuleNotFoundError: No module named 'queue_pb2' when I am trying to ...
poetisme's user avatar
0 votes
1 answer
563 views

How to set grpc response in json list

I have this grpc response: elem {'a': 1, 'b': 2} elem {'a': 5, 'b': 10} I want to make it as [ {'a': 1, 'b': 2}, {'a': 5, 'b': 10} ] How to do it in my flask project?
A.Sana's user avatar
  • 95
1 vote
1 answer
1k views

Grpc requests failing when python client used inside flask

I have a flask app that needs to make a request to a grpc server when a request is made to the flask endpoint. @main.route("/someroute", methods=["POST"]) def some_function(): #...
Reez0's user avatar
  • 2,707
0 votes
1 answer
4k views

Flask + gRPC trouble

I've got a flask API application running on Win by apache + mod_wsgi plugin. I made a grpc service by official tutorials, created grpc server and running it as a win service (by some win service ...
Sas Matras's user avatar
9 votes
0 answers
4k views

gRPC channel.close() taking 10 seconds

I'm trying to use the following code in my production server(which I want to scale it to more than 500 TPS). I'm facing the following issue when I flood the server with many requests. In atleast 1 ...
Sathu Hareesh Babu's user avatar
1 vote
1 answer
522 views

Why does adding adding ```flask_sockets.worker``` to gunicorn slow down gRPC client connection?

I am building a flask server that connects to a background gRPC service. I planned to use gunicorn to serve the flask app. Adding a flask_sockets.worker is slowing it down terribly! Here is a minimum ...
jMathew's user avatar
  • 1,057
1 vote
1 answer
5k views

'Channel' object has no attribute 'unary_unary' error when calling prediction_service_pb2_grpc.PredictionServiceStub(channel)

I am trying to create an inference app for my model (language classification), and I am getting an error Channel object has no attribute unary_unary. I can't find any information about this problem ...
Adam Krawczyk's user avatar
2 votes
1 answer
2k views

grpc server immediately quits if running together with treaded Flask app

I'm trying to run Flask REST API and gRPC API inside a single application and container, and for some reason gRPC server closes immediately after start. So I have a simple Flask app that is serving ...
alexykot's user avatar
  • 729