Error when uploading to Gaia hub - local GaiaHub

node gaia_test.js

[DEBUG] connectToGaiaHub: http://localhost:80//hub_info

(node:25544) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.

(node:25544) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.

(node:25544) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.

[DEBUG] uploadToGaiaHub: uploading foo.txt to http://localhost:80/

(node:25544) UnhandledPromiseRejectionWarning: Error: Error when uploading to Gaia hub

at Object. (/Users/zhouhe/blockchain/gaiahub/gaia/node_modules/blockstack/lib/storage/hub.js:48:19)

at Generator.next ()

at fulfilled (/Users/zhouhe/blockchain/gaiahub/gaia/node_modules/blockstack/lib/storage/hub.js:4:58)

at process._tickCallback (internal/process/next_tick.js:68:7)

(node:25544) 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:25544) [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.