{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/5434","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/5434/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/5434/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/5434/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/issues/5434","id":329162330,"node_id":"MDU6SXNzdWUzMjkxNjIzMzA=","number":5434,"title":"BigQuery DataTransfer: Error in scheduling runs","user":{"login":"mxlei01","id":7399324,"node_id":"MDQ6VXNlcjczOTkzMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/7399324?v=4","gravatar_id":"","url":"https://api.github.com/users/mxlei01","html_url":"https://github.com/mxlei01","followers_url":"https://api.github.com/users/mxlei01/followers","following_url":"https://api.github.com/users/mxlei01/following{/other_user}","gists_url":"https://api.github.com/users/mxlei01/gists{/gist_id}","starred_url":"https://api.github.com/users/mxlei01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxlei01/subscriptions","organizations_url":"https://api.github.com/users/mxlei01/orgs","repos_url":"https://api.github.com/users/mxlei01/repos","events_url":"https://api.github.com/users/mxlei01/events{/privacy}","received_events_url":"https://api.github.com/users/mxlei01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-04T18:14:39Z","updated_at":"2018-06-04T18:14:39Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use Python's API for BigQuery DataTransfer, but I'm getting RPC errors. I'm not sure if there's a problem with the API or a general configuration problem with the script.\r\n\r\ngoogle-cloud-python version:\r\n\r\n> Name: google-cloud\r\n> Version: 0.32.0\r\n> Summary: API Client library for Google Cloud\r\n> Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python\r\n> Author: Google Cloud Platform\r\n> Author-email: googleapis-publisher@google.com\r\n> License: Apache 2.0\r\n> Location: /home/ubuntu/python3_virtualenv/python3_env/lib/python3.6/site-packages\r\n> Requires: google-cloud-resource-manager, google-cloud-language, google-cloud-storage, google-cloud-trace, google-cloud-datastore, google-cloud-pubsub, google-cloud-core, google-cloud-speech, google-cloud-spanner, google-cloud-translate, google-cloud-vision, google-cloud-videointelligence, google-cloud-error-reporting, google-cloud-bigquery, google-cloud-firestore, google-cloud-bigquery-datatransfer, google-cloud-dns, google-cloud-bigtable, google-cloud-container, google-cloud-monitoring, google-cloud-logging, google-api-core, google-cloud-runtimeconfig\r\n\r\nExample Code:\r\n\r\n```\r\nclient = bigquery_datatransfer.DataTransferServiceClient()\r\n\r\ntimestamp_start = timestamp_pb2.Timestamp()\r\ntimestamp_start.FromSeconds(1524022447)\r\n\r\ntimestamp_end = timestamp_pb2.Timestamp()\r\ntimestamp_end.FromSeconds(1524133447)\r\n\r\nclient.schedule_transfer_runs(client.get_transfer_config(\"projects/<PROJECT_ID>/locations/us/transferConfigs/<TRANSFER-ID>\").name,\r\n                              start_time=timestamp_start,\r\n                              end_time=timestamp_end)\r\n```\r\n\r\nExample Error:\r\n\r\n```\r\n---------------------------------------------------------------------------\r\n_Rendezvous                               Traceback (most recent call last)\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/google/api_core/grpc_helpers.py in error_remapped_callable(*args, **kwargs)\r\n     53         try:\r\n---> 54             return callable_(*args, **kwargs)\r\n     55         except grpc.RpcError as exc:\r\n\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/grpc/_channel.py in __call__(self, request, timeout, metadata, credentials)\r\n    499         state, call, = self._blocking(request, timeout, metadata, credentials)\r\n--> 500         return _end_unary_response_blocking(state, call, False, None)\r\n    501 \r\n\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/grpc/_channel.py in _end_unary_response_blocking(state, call, with_call, deadline)\r\n    433     else:\r\n--> 434         raise _Rendezvous(state, None, None, deadline)\r\n    435 \r\n\r\n_Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, Request contains an invalid argument.)>\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nInvalidArgument                           Traceback (most recent call last)\r\n<ipython-input-40-13d74c5cc600> in <module>()\r\n      7 client.schedule_transfer_runs(client.get_transfer_config(\"projects/967176960612/locations/us/transferConfigs/5aa1c6a1-0000-252e-b3b7-f403043605f4\").name,\r\n      8                               start_time=timestamp_start,\r\n----> 9                               end_time=timestamp_end)\r\n\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/google/cloud/bigquery_datatransfer_v1/gapic/data_transfer_service_client.py in schedule_transfer_runs(self, parent, start_time, end_time, retry, timeout)\r\n    711             parent=parent, start_time=start_time, end_time=end_time)\r\n    712         return self._schedule_transfer_runs(\r\n--> 713             request, retry=retry, timeout=timeout)\r\n    714 \r\n    715     def get_transfer_run(self,\r\n\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py in __call__(self, *args, **kwargs)\r\n    137             kwargs['metadata'] = metadata\r\n    138 \r\n--> 139         return wrapped_func(*args, **kwargs)\r\n    140 \r\n    141 \r\n\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/google/api_core/retry.py in retry_wrapped_func(*args, **kwargs)\r\n    258                 sleep_generator,\r\n    259                 self._deadline,\r\n--> 260                 on_error=on_error,\r\n    261             )\r\n    262 \r\n\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/google/api_core/retry.py in retry_target(target, predicate, sleep_generator, deadline, on_error)\r\n    175     for sleep in sleep_generator:\r\n    176         try:\r\n--> 177             return target()\r\n    178 \r\n    179         # pylint: disable=broad-except\r\n\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/google/api_core/timeout.py in func_with_timeout(*args, **kwargs)\r\n    204             \"\"\"Wrapped function that adds timeout.\"\"\"\r\n    205             kwargs['timeout'] = next(timeouts)\r\n--> 206             return func(*args, **kwargs)\r\n    207 \r\n    208         return func_with_timeout\r\n\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/google/api_core/grpc_helpers.py in error_remapped_callable(*args, **kwargs)\r\n     54             return callable_(*args, **kwargs)\r\n     55         except grpc.RpcError as exc:\r\n---> 56             six.raise_from(exceptions.from_grpc_error(exc), exc)\r\n     57 \r\n     58     return error_remapped_callable\r\n\r\n~/python3_virtualenv/python3_env/lib/python3.6/site-packages/six.py in raise_from(value, from_value)\r\n\r\nInvalidArgument: 400 Request contains an invalid argument.\r\n```"}}
{"actor":{"display_login":"mxlei01"}}