Comments (5)
Hey @HazemElAgaty,
Are you sure you are providing the right password then? I know it sounds trivial but it happens more than you might think.
Also, version 1.0.2
is a year old. Even if I'm positive persistent subscriptions to all were working back then, would you consider moving to the latest version of the client and retry? Currently, it's version 3.0.0
from eventstore-client-go.
@YoEight Thanks a lot for the quick response. I double checked the credentials being used yes, but I just noticed that I am using an old version. I will upgrade the sdk and try again.
from eventstore-client-go.
@YoEight After upgrading the pkg to the latest version, the error has changed to "Unauthenticated" although I am passing the admin credentials as shown below.
creds := &esdb.Credentials{
Login: "admin",
Password: "changeit",
}
persistentSubsOptions := esdb.PersistentAllSubscriptionOptions{
Filter: &esdb.SubscriptionFilter{Type: esdb.StreamFilterType, Prefixes: []string{string(account.AccountAggregateType)}},
Authenticated: creds,
}
logger.Log.Info("creating persistent subscription..")
err := db.CreatePersistentSubscriptionToAll(ctx, SubsGroupName, persistentSubsOptions)
Error
error when creating reading server features from the best candidate 'xxx.eventstore.cloud:2113': rpc error: code = Unauthenticated desc = Unauthenticated
from eventstore-client-go.
Hey @HazemElAgaty ,
After some investigation, based on how cloud clusters are set up, you'll need to be authenticated prior to even start issuing commands. I suggest you to configure your default credentials at the connection string level like shown below:
esdb.ParseConnectionString("esdb+discover://{login}:{password}@xxx.eventstore.cloud")
You won't need to be pass the Authenticated
setting later on either.
from eventstore-client-go.
@YoEight Thanks a lot, it worked now.
from eventstore-client-go.
Related Issues (20)
- Increase max receive message length to match the max event size in EventStoreDB
- Type mismatch between `time.Duration` and time format used by EventStoreDB HOT 1
- Ensure rediscovery is not run when the server returns a timeout HOT 1
- Mocking capabilities HOT 8
- Problem importing v2 of the client HOT 3
- Possible memory leak on client close HOT 2
- Make logging pluggable HOT 3
- Cleanup eventstoredb in each test HOT 2
- Support ReadAllStreams for getting all streams HOT 2
- UpdatePersistentSubscriptionToAll is ignoring filter options. HOT 3
- Exposing channels to the exported functions HOT 5
- How to determine if stream is non-existing on subscription HOT 2
- Get stream revision when doing a ReadStream() HOT 1
- Nil pointer deref when reading subscription info from GRPC client HOT 2
- Latest version 3.2.0 exposes some vulnerabilities HOT 2
- bug: AppendEvents does not persist Metadata if more than one event is provided. HOT 6
- question: Persistent Subscription Docs vs. Code HOT 6
- issue: Fail to create Persistent Subscription on multi-node deployment HOT 4
- Vague error message when attempting to create persistent subscription to $all HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventstore-client-go.