Giter Site home page Giter Site logo

flutter's People

Contributors

angelxmoreno avatar jbt avatar simontabor avatar singhshashi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flutter's Issues

Because of flutter.connect - it's asking me to install redis

Am using MongoDB for my data storage. When I implement flutter, and try to run node instance, it throws error saying -


events.js:72
throw er; // Unhandled 'error' event
^
Error: Redis connection to localhost:6379 failed - connect ECONNREF
USED
at RedisClient.on_error (C:\TF\node_modules\flutter\node
_modules\redis\index.js:189:24)
at Socket. (C:\TF\node_modules\flutter\node_m
odules\redis\index.js:95:14)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:441:14
at process._tickCallback (node.js:415:13)
npm ERR! weird error 8
npm ERR! not ok code 0

Can someone give me the solution to this..

I just want to get oauthAccessToken and oauthAccessTokenSecret form flutter.

Incorrect example showing how to query twitter api?

The following example from the documentation is incorrect.

//incorrect
flutter.API.get('search/tweets.json', { q: 'bacon' }, accessToken, secret, function(err, results) {
  console.log(results); // { statuses: [ { ...etc } ] }
});

As per the source code, the second argument that the get function expects is the access token.

FlutterAPI.prototype.get = function(url, token, secret, cb)

whereas, what is being provided is a json object. The correct way is as follows

//correct url
flutter.API.get('https://api.twitter.com/1.1/search/tweets.json?q=bacon', accessToken, secret, function(err, results) {
  console.log(results); // { statuses: [ { ...etc } ] }
});

I am guessing that what you documented is how you would want to build your library, but that is not how the library currently works. Could you please confirm this is an issue? If so, I shall fix the documentation appropriately.

TypeError: Cannot set property 'oauthRequestToken' of undefined when using sample code from readme

I copied the sample code from the readme and got this error:

/Users/joshuabalfour/Projects/iot-project/node_modules/flutter/src/Flutter.js:128
    req.session.oauthRequestToken = token;
                                  ^
TypeError: Cannot set property 'oauthRequestToken' of undefined
    at /Users/joshuabalfour/Projects/iot-project/node_modules/flutter/src/Flutter.js:128:35
    at /Users/joshuabalfour/Projects/iot-project/node_modules/flutter/node_modules/oauth/lib/oauth.js:551:7
    at passBackControl (/Users/joshuabalfour/Projects/iot-project/node_modules/flutter/node_modules/oauth/lib/oauth.js:390:11)
    at IncomingMessage.<anonymous> (/Users/joshuabalfour/Projects/iot-project/node_modules/flutter/node_modules/oauth/lib/oauth.js:409:9)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

I fixed it by requiring and using express-session in my app

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.