Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Request fails with DEADLINE_EXCEEDED #57

Open
michaelbausor opened this issue May 22, 2019 · 2 comments
Open

Request fails with DEADLINE_EXCEEDED #57

michaelbausor opened this issue May 22, 2019 · 2 comments

Comments

@michaelbausor
Copy link
Contributor

I have created an example using the vision API here: https://github.com/michaelbausor/gapic-generator-cpp/tree/examples/examples/vision

I would expect the example to succeed - instead it fails with DEADLINE_EXCEEDED.

Steps to reproduce:

Note that you will need to have the GOOGLE_APPLICATION_CREDENTIALS environment variable set.

@software-dov
Copy link
Contributor

Root cause in the above example:

  1. The service url is not being set correctly but is instead set to the empty string.
  2. The default rpc timeout durations are too small.

Correcting these in the generator allows the example to succeed. A general fix will be inbound momentarily.

@software-dov
Copy link
Contributor

Clarification addendum: the vision proto file does not define the default host; the host is currently defined in the gapic yaml. Changing this is outside the scope of the gapic generator but will be addressed via proto annotation.
The gapic stub factory function does need a variant with a 'host' parameter for other reasons. This is in the scope of the generator and is the target of the aforementioned inbound fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants