hypercore-protocol / hypercore-next

Hypercore 10 is an append only log with multi-writer primitives built in.
MIT License
150 stars 15 forks source link

extensions error #17

Closed davidmarkclements closed 3 years ago

davidmarkclements commented 3 years ago

When a connection comes in, and core begins to replicate this unhandled rejection occurs:

(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:13705) [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.
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 7)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 9)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 10)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 11)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 12)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 13)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 14)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 15)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 16)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 17)
(node:13705) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Extension.send (/Users/davidclements/code/upend/upender/node_modules/hypercore-x/lib/extensions.js:13:33)
    at Batch.send (/Users/davidclements/code/upend/upender/node_modules/hyperbee/lib/extension.js:29:19)
(node:13705) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 18)
mafintosh commented 3 years ago

fixed in master