Giter Site home page Giter Site logo

Comments (7)

comtihon avatar comtihon commented on July 24, 2024

Problem is in your login variable U. I suppose, that it is a tuple {ok, Login}, so list_to_binary fails. If you get it through application:get_env - put your attention to it's spec.

from mongodb-erlang.

Kitton avatar Kitton commented on July 24, 2024

No I read from the file, so it's not a tuple.
I've tried to put values directly like this

mongo:connect([{database, <<"DB_name">>}, {host, "Host"}, {port, 27017}, {login, <<"login">>}, {password, <<"password">>}])

The result's the same.

from mongodb-erlang.

comtihon avatar comtihon commented on July 24, 2024

What driver version do you use?

from mongodb-erlang.

Kitton avatar Kitton commented on July 24, 2024

It's a legacy branch.
I've tried the same with master and v0.7.3 and got this error

 [error] CRASH REPORT Process <0.276.0> with 1 neighbours exited with reason: bad argument in gen_server:init_it/6 line 330
** exception exit: badarg

from mongodb-erlang.

Kitton avatar Kitton commented on July 24, 2024

Version of erlang - 17.5

from mongodb-erlang.

comtihon avatar comtihon commented on July 24, 2024

I am trying to reproduce this.
There is no errors on mongo3+, so I am installing 2.6 mongo

from mongodb-erlang.

comtihon avatar comtihon commented on July 24, 2024

fixed

from mongodb-erlang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.