Giter Club home page Giter Club logo

csco-spark's People

Contributors

drkchiloll avatar tonybaloney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

aroach witit13

csco-spark's Issues

Error related to part where AuthService is required

server_1     | 20:18:51 installer-10 Error: Expect require('./authService') to export a function.
server_1     | 20:18:51 installer-10     at /app/node_modules/csco-spark/node_modules/uncache/index.js:18:15
server_1     | 20:18:51 installer-10     at Function.live.function (/app/node_modules/csco-spark/node_modules/uncache/index.js:20:6)
server_1     | 20:18:51 installer-10     at Object.<anonymous> (/app/node_modules/csco-spark/lib/csco-spark.js:9:25)
server_1     | 20:18:51 installer-10     at Module._compile (module.js:435:26)

Unhandled rejection (<{"message":"xxxx...>, no stack trace)

createRoomWithMembers.js

I am able to create new room using "createRoomWithMembers.js". However, I get the following error message in the terminal/console.

Unhandled rejection (<{"message":"xxxx...>, no stack trace)

where xxxx is the message id.

Request errors not rejected

When making a call to an API, I noticed my catch is not being hit when I intentionally passed invalid information.

After looking at the code, I noticed the following:

  return new Promise(function(resolve, reject) {
    request(options, function(err, res, body) {
      if(err) resolve(err);

The last line show, should it not be if (err) reject(err); ? Otherwise how would someone using this library know that something failed without parsing/inspecting the returned message.

FYI:
Not sure if you have taken a look at it or not, but the same group that provide request also provide https://www.npmjs.com/package/request-promise to make working with Promises even easier.

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.