Skip to content
This repository was archived by the owner on Aug 7, 2019. It is now read-only.

ibmblockchain/composer-rest-server crashes when using websockets #128

@andystanley

Description

@andystanley

Generated an Angular application using generator-hyperledger-composer. Initially everything works fine until the application is reloaded. Once reloaded the ibmblockchain/composer-rest-server cloud foundry app crashes and the following error is found in the logs.
Error
2018-07-19T12:53:25.89-0400 [RTR/5] OUT 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR events.js:183 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR throw er; // Unhandled 'error' event 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR ^ 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR Error: invalid status code: 17761 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at Receiver.controlMessage (/home/composer/.npm-global/lib/node_modules/@ibmblockchain/composer-rest-server/node_modules/ws/lib/Receiver.js:414:22) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at Receiver.getData (/home/composer/.npm-global/lib/node_modules/@ibmblockchain/composer-rest-server/node_modules/ws/lib/Receiver.js:325:12) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at Receiver.startLoop (/home/composer/.npm-global/lib/node_modules/@ibmblockchain/composer-rest-server/node_modules/ws/lib/Receiver.js:165:16) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at Receiver.add (/home/composer/.npm-global/lib/node_modules/@ibmblockchain/composer-rest-server/node_modules/ws/lib/Receiver.js:139:10) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at Socket._ultron.on (/home/composer/.npm-global/lib/node_modules/@ibmblockchain/composer-rest-server/node_modules/ws/lib/WebSocket.js:142:22) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at emitOne (events.js:116:13) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at Socket.emit (events.js:211:7) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at addChunk (_stream_readable.js:263:12) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at readableAddChunk (_stream_readable.js:250:11) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at Socket.Readable.push (_stream_readable.js:208:10) 2018-07-19T12:53:25.89-0400 [APP/PROC/WEB/0] ERR at TCP.onread (net.js:594:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions