-
Notifications
You must be signed in to change notification settings - Fork 372
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
Dataflow standard template regional launch request failure #9396
Comments
See the Client Configuration documentation for an example of how to change the endpoint using the client builder. After creating the client, you still need to specify the region when creating resources (same as you are doing in your sample code), etc, and this region needs to match the one used for the client's endpoint. |
Ok I had a chance to run some code according to the way you described. Here's the code I've run.
This results in the following error.
Any ideas? |
I'll try to reproduce and bring this to the attention of the Dataflow team. I would have expect your code to work. |
@nick-fenton I've reproduced your issues and I've raised it with the API team. @meredithslota assigning to you for visibility: Although this doesn't seem exactly like a recurrence of #7038, it is possibly related. |
@amanda-tarafa Thanks. Yep, I saw #7038 and I suspect it could be related. Just a side note here: I am able to launch a regional template job via rest API using the standard dataflow.googleapis.com base url, where regional constraints are passed on the route. This all works well and is what I'll be using for my service implementation in the meantime. Just wanted to point this out to help guide the issue to the right team. Example request uri for launching a template job via rest:
|
@amanda-tarafa Can you include me on the internal bug if there is one? |
Note: Dataflow currently does not support regional endpoints like $"{region}-dataflow.googleapis.com". |
@bhisevishal |
We are investigating bug internally once we able to root cause issue then someone from google client library team or dataflow team will update this thread. |
There seems to be an issue with the library or with the Grpc.Net.Client dependencies, but we haven't found what the problem is yet. For the time beeing, I can offer a workaround and that is to use Grpc.Core, for that, you need to:
The rest of your code should be the same as it is now. We are actively looking into this and I'll come back here with updates when I know more. |
Thank you for the workaround! |
OK, we've found what the issue is, we'll now have to make a decision on how to fix it, there are several options with different pros and cons, etc. I'll downgrade the priority of this issue to P2, given that there's a workaround and that we have found the root cause. But we continue to actively work on it. Again, I'll come back here when we know what we'll do and the ETA for that. |
@meredithslota assigning to you to figure out next steps. We can discuss on the internal document. Thanks. |
@nick-fenton We've added a workaround in Google.Api.Gax.Grpc so you don't have to force the use of Grpc.Core. Once that's been released, you can add the new version of Google.Api.Gax.Grpc explicitly to your project, or wait until we have released a new version of Google.Cloud.Dataflow.V1Beta3 that should depend on the newest Google.Api.Gax.Grpc. |
Changes in this release: No API surface changes; just dependency updates. However, the dependency update to GAX 4.3.1 fixes [issue 9396](#9396).
Changes in this release: No API surface changes; just dependency updates. However, the dependency update to GAX 4.3.1 fixes [issue 9396](#9396).
@nick-fenton We've released Google.Cloud.Dataflow.V1Beta3 v2.0.0-beta04 containing the library side fix. If you upgrade to that your original code should work as expected. Do let us know if you run into any other issues. |
@amanda-tarafa thank you! |
@amanda-tarafa thank you for quick fix! |
Launching a standard template with regional endpoint
europe-west3
is failing with error:Grpc.Core.RpcException: Status(StatusCode="FailedPrecondition", Detail="(d5c84d5dd719994a): The workflow could not be created, since it was sent to an invalid regional endpoint (europe-west3) or the wrong API endpoint was used. Please resubmit to a valid Cloud Dataflow regional endpoint and ensure you are using dataflow.projects.locations.templates.launch API endpoint. The list of Cloud Dataflow regional endpoints is at https://cloud.google.com/dataflow/docs/concepts/regional-endpoints. ")
Here's how I'm trying to launch the job:
It seems as if I need to change the endpoint using the client builder, but I'm not quite sure how to go about passing the resource name.
Edit: I'm using Dataflow Prime.
The text was updated successfully, but these errors were encountered: