Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionClosed: Connection closed while waiting for data #93

Open
rydnr opened this issue Dec 30, 2020 · 0 comments
Open

ConnectionClosed: Connection closed while waiting for data #93

rydnr opened this issue Dec 30, 2020 · 0 comments

Comments

@rydnr
Copy link

rydnr commented Dec 30, 2020

Hi,

I'm running Pharo8 with mongotalk master, and I'm unable to connect to a MongoDB Atlas cluster. I always get
"ConnectionClosed: Connection closed while waiting for data" errors:

mongotalk

The connection seems to close when ReplyOperation tries to read the size (method ReplyOperation>>read).

The code I'm using is:

| client |
client := MongoClient withUrls: #('mongodb://pro-contestia-shard-00-02.ffzva.mongodb.net:27017' 'mongodb://pro-contestia-shard-00-01.ffzva.mongodb.net:27017' 'mongodb://pro-contestia-shard-00-00.ffzva.mongodb.net:27017').
client start.
client primaryMongoDo: [ :mongo |
	((mongo
		databaseNamed: 'test')
		getCollection: 'pilots')
		add: { 'name' -> 'Fangio' } asDictionary ].
client stop.

My first assumption was that the stream class MongoTalk uses is SocketStream and not ZdcSecureSocketStream. MongoDB Atlas requires TLS. Is it supported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant