com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: The request deadline is 2019-06-18T20:59:52.360292137-07:00. The deadline cannot be more than 30s in the future.
Caused by: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: The request deadline is 2019-06-18T20:59:52.360292137-07:00. The deadline cannot be more than 30s in the future.
Using Cloud Tasks and Cloud KMS API in the same maven project.
<dependencyManagement>
...
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>2.8.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencyManagement>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-kms</artifactId>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-tasks</artifactId>
</dependency>
In issue #5555, it was suggested to import a specific version of GAX
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax</artifactId>
<version>1.47.0</version>
</dependency>
However after specifying 1.47.0 GAX, code calling KeyManagementServiceClient.create() is failing with:
Caused by: java.lang.AbstractMethodError: Receiver class com.google.api.gax.grpc.InstantiatingGrpcChannelProvider does not define or inherit an implementation of the resolved method abstract needsCredentials()Z of interface com.google.api.gax.rpc.TransportChannelProvider.
at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:157) ~[gax-1.47.0.jar:1.47.0]
at com.google.cloud.kms.v1.stub.GrpcKeyManagementServiceStub.create(GrpcKeyManagementServiceStub.java:320) ~[google-cloud-kms-1.14.0.jar:1.14.0]
at com.google.cloud.kms.v1.stub.KeyManagementServiceStubSettings.createStub(KeyManagementServiceStubSettings.java:292) ~[google-cloud-kms-1.14.0.jar:1.14.0]
at com.google.cloud.kms.v1.KeyManagementServiceClient.<init>(KeyManagementServiceClient.java:155) ~[google-cloud-kms-1.14.0.jar:na]
at com.google.cloud.kms.v1.KeyManagementServiceClient.create(KeyManagementServiceClient.java:136) ~[google-cloud-kms-1.14.0.jar:na]
at com.google.cloud.kms.v1.KeyManagementServiceClient.create(KeyManagementServiceClient.java:127) ~[google-cloud-kms-1.14.0.jar:na]
Any thoughts on how to resolve? thanks!!
Using Cloud Tasks and Cloud KMS API in the same maven project.
In issue #5555, it was suggested to import a specific version of GAX
However after specifying 1.47.0 GAX, code calling
KeyManagementServiceClient.create()is failing with:Any thoughts on how to resolve? thanks!!