@@ -113,7 +113,7 @@ async function dataHandler(messageSet, topic, partition) {
113
113
msgValue . msginfo = `Reconcile failed. \n` +
114
114
`DB Operation: ${ payload . OPERATION } \n ` +
115
115
`Error code : ${ msgValue . code } \n` +
116
- `Error Detail : ${ msgValue . error } `
116
+ `Error Detail : ${ msgValue . detail } `
117
117
logger . debug ( 'Reconcile failed, sending it to error queue: ' , config . topic_error . NAME ) ;
118
118
kafka_error = await pushToKafka ( producer , config . topic_error . NAME , msgValue )
119
119
if ( ! kafka_error ) {
@@ -124,7 +124,7 @@ async function dataHandler(messageSet, topic, partition) {
124
124
`Status : Reconcile failed. Also unable to post the info in kafka error topic channel due to errors \n` +
125
125
`DB Operation: ${ payload . OPERATION } \n ` +
126
126
`Error code : ${ msgValue . code } \n` +
127
- `Error Detail : ${ msgValue . error } `
127
+ `Error Detail : ${ msgValue . detail } `
128
128
notify_msg = "consumer_reconcile post fails - unable to post the error in kafka failure topic due to some errors"
129
129
await slack . send_msg_to_slack ( notify_msg ) ;
130
130
}
@@ -144,7 +144,7 @@ async function dataHandler(messageSet, topic, partition) {
144
144
msgValue . msginfo = `Max Retry Reached. \n` +
145
145
`DB Operation: ${ payload . OPERATION } \n ` +
146
146
`Error code : ${ msgValue . code } \n` +
147
- `Error Detail : ${ msgValue . error } `
147
+ `Error Detail : ${ msgValue . detail } `
148
148
kafka_error = await pushToKafka ( producer , config . topic_error . NAME , msgValue )
149
149
if ( ! kafka_error ) {
150
150
logger . info ( "Kafka Message posted successfully to the topic : " + config . topic_error . NAME )
@@ -154,7 +154,7 @@ async function dataHandler(messageSet, topic, partition) {
154
154
`Status : Max Retry Reached. Also unable to post the info in kafka error topic channel due to errors \n` +
155
155
`DB Operation: ${ payload . OPERATION } \n ` +
156
156
`Error code : ${ msgValue . code } \n` +
157
- `Error Detail : ${ msgValue . error } `
157
+ `Error Detail : ${ msgValue . detail } `
158
158
await slack . send_msg_to_slack ( notify_msg ) ;
159
159
}
160
160
} else {
0 commit comments