Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google.api_core.exceptions.InternalServerError: 500 @ vertex-ai.reasoning_engines.ReasoningEngine.create #4811

Open
samjtro opened this issue Dec 20, 2024 · 0 comments
Labels
api: vertex-ai Issues related to the googleapis/python-aiplatform API.

Comments

@samjtro
Copy link

samjtro commented Dec 20, 2024

I am able to run the program, but it hangs for a few minutes before giving the following error.

Environment details

  • OS type and version: MacOS 12.7.6
  • Python version: 3.11
  • pip version: 23.2.1
  • google-cloud-aiplatform version: 1.71.1

Code example

def create_agent(display_name: str):
    agent = reasoning_engines.ReasoningEngine.create(
        reasoning_engines.LangchainAgent(
            model="gemini-pro",
            tools=[sim_search],
            model_kwargs={
                "temperature": 0.1,
            },
        ),
        requirements=[
            "google-cloud-aiplatform[reasoningengine,langchain]==1.68.0",
            "langchain-google-cloud-sql-pg==0.10.0",
            "langchain-google-vertexai==1.0.10",
        ],
        display_name=display_name,
    )

Stack trace

Traceback (most recent call last):
  File "/Users/sjt/repos/github.com/agentiq-labs/cloud-sql-pg-rag/main.py", line 77, in <module>
    main()
  File "/Users/sjt/repos/github.com/agentiq-labs/cloud-sql-pg-rag/main.py", line 70, in main
    agent = create_agent('agentiq')
            ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sjt/repos/github.com/agentiq-labs/cloud-sql-pg-rag/main.py", line 53, in create_agent
    agent = reasoning_engines.ReasoningEngine.create(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sjt/.venvs/cloud-sql-pg-rag/lib/python3.11/site-packages/vertexai/reasoning_engines/_reasoning_engines.py", line 265, in create
    created_resource = operation_future.result()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sjt/.venvs/cloud-sql-pg-rag/lib/python3.11/site-packages/google/api_core/future/polling.py", line 261, in result
    raise self._exception
google.api_core.exceptions.InternalServerError: 500
...
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1734656097.215229  979259 init.cc:229] grpc_wait_for_shutdown_with_timeout() timed out.
@product-auto-label product-auto-label bot added the api: vertex-ai Issues related to the googleapis/python-aiplatform API. label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vertex-ai Issues related to the googleapis/python-aiplatform API.
Projects
None yet
Development

No branches or pull requests

1 participant