CombinedPropertyError: Received one or more errors

I'm trying to get the value from mysql (That yellow log is that value)
connection.getConnection(function(err, connection) {
if (err) throw err;

connection.query("SELECT * FROM user where id=" + user.id , function (error, results, fields) {
connection.release();
console.log(results[0].point)
embed.addFields(
{ name: '주의', value: '링크를 누르면 자동으로 포인트가 차감 됩니다.', inline: true},
{ name: '이름', value: '코어 플러그인', inline: true},

{ name: 'ㅅㄷㄴㅅ', value: '남은 포인트 ' + results[0].point , inline: true},
)



})
})
connection.getConnection(function(err, connection) {
if (err) throw err;

connection.query("SELECT * FROM user where id=" + user.id , function (error, results, fields) {
connection.release();
console.log(results[0].point)
embed.addFields(
{ name: '주의', value: '링크를 누르면 자동으로 포인트가 차감 됩니다.', inline: true},
{ name: '이름', value: '코어 플러그인', inline: true},

{ name: 'ㅅㄷㄴㅅ', value: '남은 포인트 ' + results[0].point , inline: true},
)



})
})
But it's returning error like below CombinedPropertyError: Received one or more errors at ArrayValidator.handle (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@sapphire\shapeshift\dist\index.js:457:70) at ArrayValidator.parse (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@sapphire\shapeshift\dist\index.js:201:88) at EmbedBuilder.addFields (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@discordjs\builders\dist\index.js:198:31) at Query.<anonymous> (D:\Project\minecraft\Commission\Illusion\Bot\Illusion\Events\interactionCreate.js:126:35) at Query.<anonymous> (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\mysql\lib\Connection.js:526:10) at Query._callback (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\mysql\lib\Connection.js:488:16) at Query.Sequence.end (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\mysql\lib\protocol\sequences\Sequence.js:83:24) at Query._handleFinalResultPacket (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\mysql\lib\protocol\sequences\Query.js:149:8) at Query.EofPacket (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\mysql\lib\protocol\sequences\Query.js:133:8) at Protocol._parsePacket (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\mysql\lib\protocol\Protocol.js:291:23) { errors: [ [ 2, CombinedPropertyError: Received one or more errors at ObjectValidator.handleIgnoreStrategy (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@sapphire\shapeshift\dist\index.js:1252:70) at ObjectValidator.handleStrategy (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@sapphire\shapeshift\dist\index.js:1105:47) at ObjectValidator.handle (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@sapphire\shapeshift\dist\index.js:1205:17) at ObjectValidator.run (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@sapphire\shapeshift\dist\index.js:187:23) at ArrayValidator.handle (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@sapphire\shapeshift\dist\index.js:451:37) at ArrayValidator.parse (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@sapphire\shapeshift\dist\index.js:201:88) at EmbedBuilder.addFields (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\@discordjs\builders\dist\index.js:198:31) at Query.<anonymous> (D:\Project\minecraft\Commission\Illusion\Bot\Illusion\Events\interactionCreate.js:126:35) at Query.<anonymous> (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\mysql\lib\Connection.js:526:10) at Query._callback (D:\Project\minecraft\Commission\Illusion\Bot\node_modules\mysql\lib\Connection.js:488:16) { errors: [ [ 'value', [ValidationError] ] ] } ] } conclusion It's work very well in the log, but when It's in the embed value occurred the error
1 Reply
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server