You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
err is: { Error: Resource already exists in the project (resource=quix).
at /tmp/test/grpc/src/client.js:554:15
code: 6,
metadata: Metadata { _internal_repr: {} },
note: 'Exception occurred in retry method that was not classified as transient' }
Ideally createSubscription would fail when the topic name doesn't match the existing resource.
Environment details
@google-cloud/pubsubversion: 0.18.0Steps to reproduce
foobarquixon topicfooquixon topicbar(this is successful?)If a subscription name already exists for a topic the client doesn't ensure it matches the same topic for the existing resource.
This check allows the subscription to appear to be created successfully despite <topic, name> pair not matching the original resource:
https://github.com/googleapis/nodejs-pubsub/blob/master/src/index.js#L249
Error caught internally:
Ideally
createSubscriptionwould fail when the topic name doesn't match the existing resource.