Help me on connect to Azure mongoDB

NodeBB Development
  • #1

    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 Plugin & Theme Dev
    #2

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

  • #3

    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....

  • #4

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

  • #5

    @blueshu Were you able to fix this No more documents in tailed cursor {"name":"MongoError","tailable":true,"awaitData":true} error?


Suggested Topics


| | | |