Giter VIP home page Giter VIP logo

librelay-node's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

librelay-node's Issues

Error: ENOENT: no such file or directory, uv_os_get_passwd

When using this library within a containers in OpenShift I'm getting the following error

Error: ENOENT: no such file or directory, uv_os_get_passwd
    at Object.<anonymous> (/usr/src/node_modules/librelay/src/hub/registration.js:13:42)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/src/node_modules/librelay/src/hub/index.js:3:22)
    at Module._compile (module.js:653:30)

This is happening because containers in Openshift are started with a random user id for which there is probably no user entry.

You can reproduce this issue outside of Openshift with plain docker by passing the user argument:

$ docker run --rm -ti --user 10000001 <image>

The error is happening here: https://github.com/ForstaLabs/librelay-node/blob/master/src/hub/registration.js#L13

A possible fix might be a custom function like

const getUserName = () => {
  try {
    return os.userInfo().username;
  } catch (e) {
    return 'user';
  }
}

Bots won't talk to me

don't know if it is part of the snafu of getting out of sync that we worked through earlier - but bots won't talk to me anymore. ☚ī¸

Support session reset

Librelay is not handling session reset controls properly. Leaving troubled sessions wedged.

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.