Help me on connect to Azure mongoDB



  • Now I am try to build my forum with NodeBB, try to connect to Azure mongoDB
    when setup it's ok .. create NodeBB(DB with add ssl = true) into my Azure mongoDB.
    But in socket hand socketAdapter() it's can't connection(time out)

    then I add ssl= true like this in mongo.js

    mongoModule.socketAdapter = function () {
    	var mongoAdapter = require('socket.io-adapter-mongo');
    	return mongoAdapter(mongoModule.getConnectionString(),{ssl:true});
    };
    

    It's ok connect successfully... But then give me another error:
    error: No more documents in tailed cursor {"name":"MongoError","tailable":true,"awaitData":true}

    Please help me....

    Thanks


  • Global Moderator

    You should be able to specify SSL without modifying the code by adding ?ssl=true to the end of the connection URI



  • yeah, I try just update url and add ?ssl=true... It give me some error:
    No more documents in tailed cursor {"name":"MongoError","tailable":true,"awaitData":true}
    I think this may caused by mongodb settings....



  • who did connect to Azure Cosmos DB ? help me on this..


Log in to reply
 

Suggested Topics

| |