Skip to content

PubSub SDK calls experimental API, fails #1150

@teddziuba

Description

@teddziuba

I recently started getting this error in production:

PERMISSION_DENIED: Google Cloud Pub/Sub API (Experimental) has not been used in project <my-project> before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/pubsub-experimental.googleapis.com/overview?project= <my-project> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

Visiting that URL is not helpful. It seems that Google has turned off "experimental" endpoints, however, I do not explictly call experimental endpoints in my code.

However, this file: https://github.com/GoogleCloudPlatform/gcloud-java/blob/v0.2.6/gcloud-java-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/SubscriberSettings.java#L106

Sets "pubsub-experimental.googleapis.com" as the default RPC endpoint for PubSub subscription calls. I'm specifically referencing the 0.2.6 release, as this is the most recent version in Maven Central, but this setting is also present in master as of now.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions