-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.Resolving the issue is dependent on other work.triaged for GAtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
I get the following when subscribing to a topics subscription locally:
...
[pubsub] Nov 09, 2016 1:46:17 PM com.google.cloud.iam.testing.v1.shared.authorization.AuthInterceptor interceptCall
[pubsub] INFO: Authentication interceptor: Header value is null
[pubsub] Nov 09, 2016 1:46:17 PM com.google.cloud.iam.testing.v1.shared.authorization.AuthInterceptor interceptCall
[pubsub] INFO: Authentication interceptor: invalid or missing token
[pubsub] Nov 09, 2016 1:46:17 PM com.google.cloud.iam.testing.v1.shared.authorization.AuthInterceptor interceptCall
[pubsub] INFO: Authentication interceptor: Header value is null
...
Given the below information, what could be wrong?
My java code works with the actual cloud service but when using the following code:
PubSubOptions.Builder optionsBuilder = PubSubOptions.newBuilder().setProjectId("project");
optionsBuilder.setAuthCredentials(AuthCredentials.noAuth());
optionsBuilder.setHost("localhost:8989");
PubSub pubsub = optionsBuilder.build().getService();
//then using pubsub.pullAsync(...) for the actual pulling of messagesgcloud pubsub emulator started like this:
gcloud beta emulators pubsub start --host-port=0.0.0.0:8989
Versions:
gcloud-java-pubsub -> 0.5.1
$ gcloud --version
Google Cloud SDK 133.0.0
alpha 2016.01.12
beta 2016.01.12
bq 2.0.24
bq-nix 2.0.24
core 2016.11.01
core-nix 2016.11.01
gcloud
gsutil 4.22
gsutil-nix 4.22
pubsub-emulator 2016.08.19
Metadata
Metadata
Assignees
Labels
api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.Resolving the issue is dependent on other work.triaged for GAtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.