generative-ai-python icon indicating copy to clipboard operation
generative-ai-python copied to clipboard

_MultiThreadedRendezvous error

Open satishmd opened this issue 1 year ago • 3 comments

Description of the bug:

when i am trying to ask a question to the model by adding the image ,sometimes i am getting below error

grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INTERNAL details = "An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting" debug_error_string = "UNKNOWN:Error received from peer ipv4:172.217.160.138:443 {created_time:"2024-01-24T11:30:58.841912+00:00", grpc_status:13, grpc_message:"An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting"}"

the code i am using is below

genai.configure(api_key=GOOGLE_API_KEY) model = genai.GenerativeModel("gemini-pro-vision") img = PIL.Image.open(f"output_images_and_tables/{value}.png") response = model.generate_content([item[1], img], stream=True)

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

satishmd avatar Jan 24 '24 11:01 satishmd

Same here! Did you figure it out?

yzeng58 avatar Mar 18 '24 03:03 yzeng58

We are having trouble reproducing this one - if you have any more info on how to repro the issue, it would help. Any environmental information too - e.g. was this colab, are you using a proxy, what OS, etc.

markmcd avatar Sep 10 '24 23:09 markmcd

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

github-actions[bot] avatar Sep 25 '24 02:09 github-actions[bot]