GAE Java8 Standard, BigQuery API throws "Invalid Project Id" #2300
Labels
api: bigquery
Issues related to the BigQuery API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
running on app engine
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment: App Engine Standard Java 8.
In pom.xml I have the following:
com.google.cloud
google-cloud
0.21.0-alpha
com.google.cloud
google-cloud-bigquery
0.21.1-beta
My app has this example in a servlet:
BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String datasetId = "my_dataset_id";
bigquery.create(DatasetInfo.newBuilder(datasetId).build());
When the servlet is called, I get the following exception:
com.google.cloud.bigquery.BigQueryException: Invalid project ID 'MyProjIDHere'. Project IDs must contain 6-63 lowercase letters, digits, or dashes. IDs must start with a letter and may not end with a dash.
at com.google.cloud.bigquery.spi.v2.HttpBigQueryRpc.translate(HttpBigQueryRpc.java:86)
at com.google.cloud.bigquery.spi.v2.HttpBigQueryRpc.create(HttpBigQueryRpc.java:141)
at com.google.cloud.bigquery.BigQueryImpl$1.call(BigQueryImpl.java:172)
at com.google.cloud.bigquery.BigQueryImpl$1.call(BigQueryImpl.java:169)
at com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:94)
at com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:54)
at com.google.cloud.bigquery.BigQueryImpl.create(BigQueryImpl.java:169)
at com.google.test.HelloAppEngine.doGet(HelloAppEngine.java:56)
The text was updated successfully, but these errors were encountered: