BuildOnViction / tomoscan

TomoScan provides a user friendly, details and perfection-oriented user interface for TomoChain block explorer. From a user perspective, TomoScan brings TomoChain’s transparency to users, because all block, transaction, finality, smart contracts, DApp and token information are read from TomoChain and shown to users
https://scan.tomochain.com
MIT License
48 stars 56 forks source link

Fix queue not found #798

Closed thanhson1085 closed 4 years ago

thanhson1085 commented 4 years ago

Follows this https://github.com/squaremo/amqp.node/issues/175. Tested.

20|tomoscan-crawler  | 2020-11-03T10:35:48.569Z INFO:  [*] Waiting for messages in TransactionProcess. To exit press CTRL+C
20|tomoscan-crawler  | events.js:174
20|tomoscan-crawler  |       throw er; // Unhandled 'error' event
20|tomoscan-crawler  |       ^
20|tomoscan-crawler  | Error: Channel closed by server: 404 (NOT-FOUND) with message "NOT_FOUND - no queue 'RewardProcess' in vhost '/'"
20|tomoscan-crawler  |     at Channel.C.accept (/data/tomochain/tomoscan/server/node_modules/amqplib/lib/channel.js:422:17)
20|tomoscan-crawler  |     at Connection.mainAccept [as accept] (/data/tomochain/tomoscan/server/node_modules/amqplib/lib/connection.js:64:33)
20|tomoscan-crawler  |     at Socket.go (/data/tomochain/tomoscan/server/node_modules/amqplib/lib/connection.js:478:48)
20|tomoscan-crawler  |     at Socket.emit (events.js:198:13)
20|tomoscan-crawler  |     at emitReadable_ (_stream_readable.js:539:12)
20|tomoscan-crawler  |     at process._tickCallback (internal/process/next_tick.js:63:19)
20|tomoscan-crawler  | Emitted 'error' event at:
20|tomoscan-crawler  |     at Connection.emit (events.js:198:13)
20|tomoscan-crawler  |     at Connection.C.onSocketError (/data/tomochain/tomoscan/server/node_modules/amqplib/lib/connection.js:353:10)
20|tomoscan-crawler  |     at Connection.emit (events.js:198:13)
20|tomoscan-crawler  |     at Socket.go (/data/tomochain/tomoscan/server/node_modules/amqplib/lib/connection.js:481:12)
20|tomoscan-crawler  |     at Socket.emit (events.js:198:13)
20|tomoscan-crawler  |     at emitReadable_ (_stream_readable.js:539:12)
20|tomoscan-crawler  |     at process._tickCallback (internal/process/next_tick.js:63:19)