Account Creation Error - Manually Re-trigger
Got an email from @reyfc
Checked the logs and in fact, it throw some errors when creating the account. Thus, I've re-triggered the account creation.
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🚀!
- You can rent Steem Power via rentsp!
- You can swap the TRON:TRX/USDT/USDD to STEEM via tron2steem!
- You can swap the STEEM/SBD to SUI via steem2sui!
- You can swap the STEEM/SBD to SOL Solana via steem2sol!
- You can swap the STEEM/SBD to ETH Ethereum via steem2eth!
- You can swap the STEEM/SBD to Tether USDT (TRC-20) via steem2usdt!
- You can swap the STEEM/SBD to TRX (TRON) via steem2trx!
- You can swap the STEEM/SBD to BTS (BitShares) via steem2bts!
- Register a free STEEM account at SteemYY!
- Steem Block Explorer
- ChatGPT/Steem Integration: You can type !ask command to invoke ChatGPT
- Steem Witness Table and API
- Other Steem Tools
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





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.