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

Deadline Exceeded (30s) for Vertex AI Image Generation Predict Endpoint / Need Configurable Setting #5425

Closed
6 tasks done
praveentcom opened this issue Jun 2, 2024 · 4 comments
Assignees
Labels
needs more info This issue needs more information from the customer to proceed.

Comments

@praveentcom
Copy link

Please make sure you have searched for information in the following guides.

Documentation Request

Deadline Exceeded (30s) for Vertex AI Image Generation Predict Endpoint / Need Configurable Setting

Error: 4 DEADLINE_EXCEEDED: Deadline exceeded after 30.000s,name resolution: 0.270s,metadata filters: 0.001s,LB pick: 0.269s

Client - PredictionServiceClient from @google-cloud/aiplatform.

const client = new PredictionServiceClient({
  apiEndpoint: _model.model_base_url,
  credentials: json_key,
  projectId: `${json_key.project_id}`,
});

const endpoint = `projects/${json_key.project_id}/locations/us-central1/publishers/google/models/imagegeneration@006`;
const instance = helpers.toValue({
  prompt: transformedRequest.prompt
});
const parameters = helpers.toValue({
  sampleCount: transformedRequest.n,
  aspectRatio: transformedRequest.aspectRatio,
  includeRaiReason: true,
  includeSafetyAttributes: true,
  safetySetting: "block_few",
  outputOptions: {
    mimeType: "image/png"
  }
});

const response = await client.predict({
  endpoint,
  instances: !_.isNil(instance) ? [instance] : [],
  parameters
});

DEADLINE_EXCEEDED error

The gRPC call times out after 30 seconds. I am not sure if this is a hard limitation set by Vertex AI or if it's a client limitation. What's the best way to proceed forward here?

@praveentcom
Copy link
Author

cc @ddelgrosso1

@manusis
Copy link

manusis commented Jun 22, 2024

Facing same issue

@sofisl
Copy link
Contributor

sofisl commented Jul 18, 2024

Could you try increasing the timeout, described in CallOptions?

@sofisl sofisl self-assigned this Jul 18, 2024
@sofisl sofisl added the needs more info This issue needs more information from the customer to proceed. label Jul 18, 2024
Copy link
Contributor

This has been closed since a request for information has not been answered for 15 days. It can be reopened when the requested information is provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue needs more information from the customer to proceed.
Projects
None yet
Development

No branches or pull requests

3 participants