loomnetwork / loom-js-samples

Sample code demonstrating usage of https://github.com/loomnetwork/loom-js
BSD 3-Clause "New" or "Revised" License
10 stars 7 forks source link

UnhandledPromiseRejectionWarning #3

Open carlzoo opened 6 years ago

carlzoo commented 6 years ago

When I ran yarn start in the directory, the result: /tmp/loom-js-samples/quickstart$ yarn start yarn run v1.10.1 warning ../../package.json: No license field $ node index.js (node:18324) UnhandledPromiseRejectionWarning: #<Object> (node:18324) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:18324) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Result of loom: I[10-15|00:23:43.608] Served RPC HTTP response module=query-server method=GET url=/queryws status=200 duration=52884 remoteAddr=127.0.0.1:53478 E[10-15|00:23:43.608] Error closing connection module=rpc-server protocol=websocket remote=127.0.0.1:45526 err="close tcp 127.0.0.1:46657->127.0.0.1:45526: use of closed network connection"

Does not print "hello" code as expected.

wafflemakr commented 5 years ago

Same here...