Account Creation Error - Manually Re-trigger

in #blog8 hours ago

Got an email from @reyfc

image.png

Checked the logs and in fact, it throw some errors when creating the account. Thus, I've re-triggered the account creation.

image.png

It did happen rarely despite that I have some retry logics. Will look into this further.

TypeError: Cannot read properties of undefined (reading 'replace')
    at sendEmail (/var/www/steem/bots/functions.js:79:21)
    at Object.error (/var/www/steem/bots/account-reg/reg.js:210:5)
    at /var/www/steem/bots/db.js:31:36                                                       at Handshake.onConnect (/var/www/steem/node_modules/mysql/lib/Pool.js:58:9)
    at Handshake.<anonymous> (/var/www/steem/node_modules/mysql/lib/Connection.js:526:10)    at Handshake._callback (/var/www/steem/node_modules/mysql/lib/Connection.js:488:16)      at Sequence.end (/var/www/steem/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at Protocol.handleNetworkError (/var/www/steem/node_modules/mysql/lib/protocol/Protocol.js:369:14)
    at Connection._handleNetworkError (/var/www/steem/node_modules/mysql/lib/Connection.js:418:18)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
TypeError: Cannot read properties of undefined (reading 'replace')
    at sendEmail (/var/www/steem/bots/functions.js:79:21)
    at Object.error (/var/www/steem/bots/account-reg/reg.js:210:5)
    at /var/www/steem/bots/db.js:31:36
    at Handshake.onConnect (/var/www/steem/node_modules/mysql/lib/Pool.js:58:9)
    at Handshake.<anonymous> (/var/www/steem/node_modules/mysql/lib/Connection.js:526:10)
    at Handshake._callback (/var/www/steem/node_modules/mysql/lib/Connection.js:488:16)
    at Sequence.end (/var/www/steem/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at Protocol.handleNetworkError (/var/www/steem/node_modules/mysql/lib/protocol/Protocol.js:369:14)
    at Connection._handleNetworkError (/var/www/steem/node_modules/mysql/lib/Connection.js:418:18)
    at Socket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

Steem to the Moon🚀!

Support me, thank you!

Why you should vote me? My contributions
Please vote me as a witness or set me as a proxy via https://steemitwallet.com/~witnesses

image.png

Sort:  

I'm glad you were able to manually re-trigger account creation, that's a great troubleshooting step. Are there any plans to add more robust error handling for this specific TypeError? 🤔💻👍

Great post! Featured in the hot section by @punicwax.

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.075
BTC 62642.23
ETH 1642.42
USDT 1.00
SBD 0.41