zufrizalyordan / twitter-hashtag-monitor

Realtime Twitter Hashtag Monitoring with node.js
8 stars 6 forks source link

Getting this error #2

Open timforgach opened 8 years ago

timforgach commented 8 years ago

What does the credentials.js look like? What creds. need to be there?

Error: Cannot find module './credentials.js' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:286:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object. (/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/app.js:2:19) at Module._compile (module.js:434:26) at Object.Module._extensions..js (module.js:452:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:475:10)

zufrizalyordan commented 8 years ago

@timforgach i've added the credentials file, but the deps are outdated. ntwitter isn't maintained anymore, better to look for another alternative, maybe mtwitter.

timforgach commented 8 years ago

Thanks for that, I got a little further this time. Getting an error:

info - socket.io started debug - served static content /socket.io.js debug - client authorized info - handshake authorized JFN5ZUPzp8SUIfDDnWwc debug - setting request GET /socket.io/1/websocket/JFN5ZUPzp8SUIfDDnWwc debug - set heartbeat interval for client JFN5ZUPzp8SUIfDDnWwc debug - client authorized for debug - websocket writing 1:: SOCKET CONNECTED

events.js:146 throw err; ^

Error: Uncaught, unspecified "error" event. (http) at EventEmitter.emit (events.js:144:17) at ClientRequest. (/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/node_modules/ntwitter/lib/twitter.js:251:14) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at HTTPParser.parserOnIncomingClient as onIncoming at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23) at TLSSocket.socketOnData (_http_client.js:305:20) at emitOne (events.js:77:13) at TLSSocket.emit (events.js:169:7) at readableAddChunk (_stream_readable.js:146:16)

Also tried to use twitter instead and ran in to another issue:

debug - served static content /socket.io.js debug - client authorized info - handshake authorized z5yIhcrScwHkqkzMnquG debug - setting request GET /socket.io/1/websocket/z5yIhcrScwHkqkzMnquG debug - set heartbeat interval for client z5yIhcrScwHkqkzMnquG debug - client authorized for debug - websocket writing 1:: SOCKET CONNECTED

/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/app.js:25 t.stream( ^

TypeError: t.stream is not a function at SocketNamespace. (/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/app.js:25:4) at emitOne (events.js:82:20) at SocketNamespace.emit (events.js:169:7) at connect (/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/node_modules/socket.io/lib/namespace.js:292:10) at /Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/node_modules/socket.io/lib/namespace.js:308:13 at SocketNamespace.authorize (/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/node_modules/socket.io/lib/namespace.js:252:5) at SocketNamespace.handlePacket (/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/node_modules/socket.io/lib/namespace.js:302:14) at Manager.handleClient (/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/node_modules/socket.io/lib/manager.js:698:32) at Manager.handleUpgrade (/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/node_modules/socket.io/lib/manager.js:618:8) at Server. (/Library/WebServer/Documents/node_tests/twitter-hashtag-monitor/node_modules/socket.io/lib/manager.js:123:10)

zufrizalyordan commented 7 years ago

@timforgach you can try out the updates i did for this repo. i tried it on my local and everything works now.