Open jack0son opened 4 years ago
> @woke/tiny-oracle@0.1.0 start-docker /usr/src/app/@woke/tiny-oracle > DEBUG=oracle* node src/index.js Secp256k1 bindings are not compiled. Pure JS implementation will be used. Keccak bindings are not compiled. Pure JS implementation will be used. { id: 5, protocol: 'wss', host: 'goerli.infura.io/ws/v3/63eb6fcc52ae41b59e9266bff13a7bb8', gasPrice: 20000000000, gasLimit: '8000000', defaultCommon: { customChain: { name: 'goerli', networkId: 5, chainId: 5 }, baseChain: 'goerli' } } 2020-04-23T03:59:06.542Z oracle Attempting Web3 connection on network 5 ... 2020-04-23T03:59:07.581Z oracle ... connected to 5 2020-04-23T03:59:07.581Z oracle ... Web3 connection success 2020-04-23T03:59:07.581Z oracle Using callback account: 0x99E017d5e13a5B1508bDDC68DbFD0394CE559FB0 2020-04-23T03:59:07.582Z oracle Connecting to Oracle contract ... 2020-04-23T03:59:07.604Z oracle Initialising twitter client ... 2020-04-23T03:59:07.802Z oracle Finding waiting queries ... 2020-04-23T03:59:08.557Z oracle Queries: 11, Responses: 12 2020-04-23T03:59:08.566Z oracle Responding to 3 queries ... 2020-04-23T03:59:08.752Z oracle:err [ { code: 50, message: 'User not found.' } ] 2020-04-23T03:59:08.753Z oracle:handler Got query undefined:1253148151701094400, queryId: 0x98b19292ca6484a5672b55a40ccfc8d3a468670a29c2d904952ea55e4b05aa6e, 2020-04-23T03:59:08.786Z oracle:handler Got query wokenetworktes1:1253169164019134466, queryId: 0xd9ad1e803d298c86a08e53e20788bf366cf39816c081db09ef59c5beeec8025a, 2020-04-23T03:59:08.789Z oracle:handler Got query wokeboye:1253150460761931776, queryId: 0xf468080ddcfc40deb651cee847046c82636f939d3f785f065f7beee9d20d23bb, 2020-04-23T03:59:08.941Z oracle:err Failed to handle query: Error: HTTP Error: 401 Authorization Required at Request._callback (/usr/src/app/@woke/lib/node_modules/twitter/lib/twitter.js:177:25) at Request.self.callback (/usr/src/app/@woke/lib/node_modules/request/request.js:185:22) at Request.emit (events.js:198:13) at Request.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1161:10) at Request.emit (events.js:198:13) at IncomingMessage.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:286:20) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) Error: HTTP Error: 401 Authorization Required at Request._callback (/usr/src/app/@woke/lib/node_modules/twitter/lib/twitter.js:177:25) at Request.self.callback (/usr/src/app/@woke/lib/node_modules/request/request.js:185:22) at Request.emit (events.js:198:13) at Request.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1161:10) at Request.emit (events.js:198:13) at IncomingMessage.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:286:20) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) { id: 5, protocol: 'wss', host: 'goerli.infura.io/ws/v3/63eb6fcc52ae41b59e9266bff13a7bb8', gasPrice: 20000000000, gasLimit: '8000000', defaultCommon: { customChain: { name: 'goerli', networkId: 5, chainId: 5 }, baseChain: 'goerli' } } 2020-04-23T03:59:08.966Z oracle Attempting Web3 connection on network 5 ... 2020-04-23T03:59:08.995Z oracle:0xf468089d20d23bb Found tweet: @getwoketoke 0xWOKE:1253150460761931776,0x2aaad052323979ae884593055961f3fef514afabeac0e23f56e80608770ce7c724f7db719dc81e3f9f3211ec867e9439b10580ad4fb8b480c67454df0b76cf161c,1 2020-04-23T03:59:08.995Z oracle:0xf468089d20d23bb Claim string: @getwoketoke 0xWOKE:1253150460761931776,0x2aaad052323979ae884593055961f3fef514afabeac0e23f56e80608770ce7c724f7db719dc81e3f9f3211ec867e9439b10580ad4fb8b480c67454df0b76cf161c,1 2020-04-23T03:59:09.026Z oracle:0xd9ad1eeeec8025a Found tweet: @getwoketoke 0xWOKE:1253169164019134466,0xc102631300e836d7d8a38116ac60f804a7f689c0904ca192e4762ea9654c1f861718d9172666e0757e3681ec60bc3a68a89f8ebc4a6d3a1768827add8f482ab71c,1 2020-04-23T03:59:09.026Z oracle:0xd9ad1eeeec8025a Claim string: @getwoketoke 0xWOKE:1253169164019134466,0xc102631300e836d7d8a38116ac60f804a7f689c0904ca192e4762ea9654c1f861718d9172666e0757e3681ec60bc3a68a89f8ebc4a6d3a1768827add8f482ab71c,1 2020-04-23T03:59:09.582Z oracle:err Failed to handle query: Error: Returned error: replacement transaction underpriced at Object.ErrorResponse (/usr/src/app/@woke/lib/node_modules/web3-core-helpers/src/errors.js:29:16) at Object.<anonymous> (/usr/src/app/@woke/lib/node_modules/web3-core-requestmanager/src/index.js:140:36) at /usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:127:44 at Array.forEach (<anonymous>) at W3CWebSocket.WebsocketProvider.connection.onmessage (/usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:104:36) at W3CWebSocket._dispatchEvent [as dispatchEvent] (/usr/src/app/@woke/lib/node_modules/yaeti/lib/EventTarget.js:107:17) at W3CWebSocket.onMessage (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:234:14) at WebSocketConnection.<anonymous> (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:205:19) at WebSocketConnection.emit (events.js:198:13) at WebSocketConnection.processFrame (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:554:26) at /usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:323:40 at process._tickCallback (internal/process/next_tick.js:61:11) Error: Returned error: replacement transaction underpriced at Object.ErrorResponse (/usr/src/app/@woke/lib/node_modules/web3-core-helpers/src/errors.js:29:16) at Object.<anonymous> (/usr/src/app/@woke/lib/node_modules/web3-core-requestmanager/src/index.js:140:36) at /usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:127:44 at Array.forEach (<anonymous>) at W3CWebSocket.WebsocketProvider.connection.onmessage (/usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:104:36) at W3CWebSocket._dispatchEvent [as dispatchEvent] (/usr/src/app/@woke/lib/node_modules/yaeti/lib/EventTarget.js:107:17) at W3CWebSocket.onMessage (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:234:14) at WebSocketConnection.<anonymous> (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:205:19) at WebSocketConnection.emit (events.js:198:13) at WebSocketConnection.processFrame (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:554:26) at /usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:323:40 at process._tickCallback (internal/process/next_tick.js:61:11) { id: 5, protocol: 'wss', host: 'goerli.infura.io/ws/v3/63eb6fcc52ae41b59e9266bff13a7bb8', gasPrice: 20000000000, gasLimit: '8000000', defaultCommon: { customChain: { name: 'goerli', networkId: 5, chainId: 5 }, baseChain: 'goerli' } } 2020-04-23T03:59:09.605Z oracle Attempting Web3 connection on network 5 ... 2020-04-23T03:59:10.005Z oracle ... connected to 5 2020-04-23T03:59:10.005Z oracle ... Web3 connection success 2020-04-23T03:59:10.189Z oracle:err [ { code: 50, message: 'User not found.' } ] 2020-04-23T03:59:10.189Z oracle:handler Got query undefined:1253148151701094400, queryId: 0x98b19292ca6484a5672b55a40ccfc8d3a468670a29c2d904952ea55e4b05aa6e, 2020-04-23T03:59:10.375Z oracle:err Failed to handle query: Error: HTTP Error: 401 Authorization Required at Request._callback (/usr/src/app/@woke/lib/node_modules/twitter/lib/twitter.js:177:25) at Request.self.callback (/usr/src/app/@woke/lib/node_modules/request/request.js:185:22) at Request.emit (events.js:198:13) at Request.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1161:10) at Request.emit (events.js:198:13) at IncomingMessage.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:286:20) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) Error: HTTP Error: 401 Authorization Required at Request._callback (/usr/src/app/@woke/lib/node_modules/twitter/lib/twitter.js:177:25) at Request.self.callback (/usr/src/app/@woke/lib/node_modules/request/request.js:185:22) at Request.emit (events.js:198:13) at Request.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1161:10) at Request.emit (events.js:198:13) at IncomingMessage.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:286:20) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) { id: 5, protocol: 'wss', host: 'goerli.infura.io/ws/v3/63eb6fcc52ae41b59e9266bff13a7bb8', gasPrice: 20000000000, gasLimit: '8000000', defaultCommon: { customChain: { name: 'goerli', networkId: 5, chainId: 5 }, baseChain: 'goerli' } } 2020-04-23T03:59:10.412Z oracle Attempting Web3 connection on network 5 ... 2020-04-23T03:59:10.744Z oracle ... connected to 5 2020-04-23T03:59:10.744Z oracle ... Web3 connection success 2020-04-23T03:59:10.982Z oracle:handler Got query wokenetworktes1:1253169164019134466, queryId: 0xd9ad1e803d298c86a08e53e20788bf366cf39816c081db09ef59c5beeec8025a, 2020-04-23T03:59:11.190Z oracle:0xd9ad1eeeec8025a Found tweet: @getwoketoke 0xWOKE:1253169164019134466,0xc102631300e836d7d8a38116ac60f804a7f689c0904ca192e4762ea9654c1f861718d9172666e0757e3681ec60bc3a68a89f8ebc4a6d3a1768827add8f482ab71c,1 2020-04-23T03:59:11.191Z oracle:0xd9ad1eeeec8025a Claim string: @getwoketoke 0xWOKE:1253169164019134466,0xc102631300e836d7d8a38116ac60f804a7f689c0904ca192e4762ea9654c1f861718d9172666e0757e3681ec60bc3a68a89f8ebc4a6d3a1768827add8f482ab71c,1 2020-04-23T03:59:11.539Z oracle ... connected to 5 2020-04-23T03:59:11.540Z oracle ... Web3 connection success 2020-04-23T03:59:11.724Z oracle:err [ { code: 50, message: 'User not found.' } ] 2020-04-23T03:59:11.725Z oracle:handler Got query undefined:1253148151701094400, queryId: 0x98b19292ca6484a5672b55a40ccfc8d3a468670a29c2d904952ea55e4b05aa6e, 2020-04-23T03:59:11.762Z oracle:err Failed to handle query: Error: Returned error: replacement transaction underpriced at Object.ErrorResponse (/usr/src/app/@woke/lib/node_modules/web3-core-helpers/src/errors.js:29:16) at Object.<anonymous> (/usr/src/app/@woke/lib/node_modules/web3-core-requestmanager/src/index.js:140:36) at /usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:127:44 at Array.forEach (<anonymous>) at W3CWebSocket.WebsocketProvider.connection.onmessage (/usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:104:36) at W3CWebSocket._dispatchEvent [as dispatchEvent] (/usr/src/app/@woke/lib/node_modules/yaeti/lib/EventTarget.js:107:17) at W3CWebSocket.onMessage (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:234:14) at WebSocketConnection.<anonymous> (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:205:19) at WebSocketConnection.emit (events.js:198:13) at WebSocketConnection.processFrame (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:554:26) at /usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:323:40 at process._tickCallback (internal/process/next_tick.js:61:11) Error: Returned error: replacement transaction underpriced at Object.ErrorResponse (/usr/src/app/@woke/lib/node_modules/web3-core-helpers/src/errors.js:29:16) at Object.<anonymous> (/usr/src/app/@woke/lib/node_modules/web3-core-requestmanager/src/index.js:140:36) at /usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:127:44 at Array.forEach (<anonymous>) at W3CWebSocket.WebsocketProvider.connection.onmessage (/usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:104:36) at W3CWebSocket._dispatchEvent [as dispatchEvent] (/usr/src/app/@woke/lib/node_modules/yaeti/lib/EventTarget.js:107:17) at W3CWebSocket.onMessage (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:234:14) at WebSocketConnection.<anonymous> (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:205:19) at WebSocketConnection.emit (events.js:198:13) at WebSocketConnection.processFrame (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:554:26) at /usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:323:40 at process._tickCallback (internal/process/next_tick.js:61:11) { id: 5, protocol: 'wss', host: 'goerli.infura.io/ws/v3/63eb6fcc52ae41b59e9266bff13a7bb8', gasPrice: 20000000000, gasLimit: '8000000', defaultCommon: { customChain: { name: 'goerli', networkId: 5, chainId: 5 }, baseChain: 'goerli' } } 2020-04-23T03:59:11.776Z oracle Attempting Web3 connection on network 5 ... 2020-04-23T03:59:11.908Z oracle:err Failed to handle query: Error: HTTP Error: 401 Authorization Required at Request._callback (/usr/src/app/@woke/lib/node_modules/twitter/lib/twitter.js:177:25) at Request.self.callback (/usr/src/app/@woke/lib/node_modules/request/request.js:185:22) at Request.emit (events.js:198:13) at Request.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1161:10) at Request.emit (events.js:198:13) at IncomingMessage.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:286:20) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) Error: HTTP Error: 401 Authorization Required at Request._callback (/usr/src/app/@woke/lib/node_modules/twitter/lib/twitter.js:177:25) at Request.self.callback (/usr/src/app/@woke/lib/node_modules/request/request.js:185:22) at Request.emit (events.js:198:13) at Request.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1161:10) at Request.emit (events.js:198:13) at IncomingMessage.<anonymous> (/usr/src/app/@woke/lib/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:286:20) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) { id: 5, protocol: 'wss', host: 'goerli.infura.io/ws/v3/63eb6fcc52ae41b59e9266bff13a7bb8', gasPrice: 20000000000, gasLimit: '8000000', defaultCommon: { customChain: { name: 'goerli', networkId: 5, chainId: 5 }, baseChain: 'goerli' } } 2020-04-23T03:59:11.923Z oracle Attempting Web3 connection on network 5 ... 2020-04-23T03:59:12.798Z oracle ... connected to 5 2020-04-23T03:59:12.798Z oracle ... Web3 connection success 2020-04-23T03:59:12.965Z oracle ... connected to 5 2020-04-23T03:59:12.965Z oracle ... Web3 connection success 2020-04-23T03:59:13.004Z oracle:handler Got query wokenetworktes1:1253169164019134466, queryId: 0xd9ad1e803d298c86a08e53e20788bf366cf39816c081db09ef59c5beeec8025a, 2020-04-23T03:59:13.214Z oracle:0xd9ad1eeeec8025a Found tweet: @getwoketoke 0xWOKE:1253169164019134466,0xc102631300e836d7d8a38116ac60f804a7f689c0904ca192e4762ea9654c1f861718d9172666e0757e3681ec60bc3a68a89f8ebc4a6d3a1768827add8f482ab71c,1 2020-04-23T03:59:13.214Z oracle:0xd9ad1eeeec8025a Claim string: @getwoketoke 0xWOKE:1253169164019134466,0xc102631300e836d7d8a38116ac60f804a7f689c0904ca192e4762ea9654c1f861718d9172666e0757e3681ec60bc3a68a89f8ebc4a6d3a1768827add8f482ab71c,1 2020-04-23T03:59:13.688Z oracle:err Failed to handle query: Error: Returned error: replacement transaction underpriced at Object.ErrorResponse (/usr/src/app/@woke/lib/node_modules/web3-core-helpers/src/errors.js:29:16) at Object.<anonymous> (/usr/src/app/@woke/lib/node_modules/web3-core-requestmanager/src/index.js:140:36) at /usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:127:44 at Array.forEach (<anonymous>) at W3CWebSocket.WebsocketProvider.connection.onmessage (/usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:104:36) at W3CWebSocket._dispatchEvent [as dispatchEvent] (/usr/src/app/@woke/lib/node_modules/yaeti/lib/EventTarget.js:107:17) at W3CWebSocket.onMessage (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:234:14) at WebSocketConnection.<anonymous> (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:205:19) at WebSocketConnection.emit (events.js:198:13) at WebSocketConnection.processFrame (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:554:26) at /usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:323:40 at process._tickCallback (internal/process/next_tick.js:61:11) Error: Returned error: replacement transaction underpriced at Object.ErrorResponse (/usr/src/app/@woke/lib/node_modules/web3-core-helpers/src/errors.js:29:16) at Object.<anonymous> (/usr/src/app/@woke/lib/node_modules/web3-core-requestmanager/src/index.js:140:36) at /usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:127:44 at Array.forEach (<anonymous>) at W3CWebSocket.WebsocketProvider.connection.onmessage (/usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:104:36) at W3CWebSocket._dispatchEvent [as dispatchEvent] (/usr/src/app/@woke/lib/node_modules/yaeti/lib/EventTarget.js:107:17) at W3CWebSocket.onMessage (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:234:14) at WebSocketConnection.<anonymous> (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:205:19) at WebSocketConnection.emit (events.js:198:13) at WebSocketConnection.processFrame (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:554:26) at /usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:323:40 at process._tickCallback (internal/process/next_tick.js:61:11) { id: 5, protocol: 'wss', host: 'goerli.infura.io/ws/v3/63eb6fcc52ae41b59e9266bff13a7bb8', gasPrice: 20000000000, gasLimit: '8000000', defaultCommon: { customChain: { name: 'goerli', networkId: 5, chainId: 5 }, baseChain: 'goerli' } } 2020-04-23T03:59:13.706Z oracle Attempting Web3 connection on network 5 ... 2020-04-23T03:59:14.723Z oracle ... connected to 5 2020-04-23T03:59:14.723Z oracle ... Web3 connection success 2020-04-23T03:59:38.208Z oracle:0xf468089d20d23bb Query response sent. 2020-04-23T03:59:38.208Z oracle Subscribing to oracle requests ... 2020-04-23T03:59:38.210Z oracle:Subscriber Subscribed to FindTweetLodged.