You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static_messageToRecord(message){//check if a converter has already turned this message into a recordif(message&&typeofmessage.value==="object"&&messageinstanceofSinkRecord){returnmessage;}try{constrecord=newSinkRecord();record.kafkaOffset=message.offset;record.key=message.key;record.partition=message.partition;record.keySchema=message.value.keySchema;record.timestamp=message.value.timestamp;record.value=message.value.value;record.valueSchema=message.value.valueSchema;returnrecord;}catch(error){debug("Failed to turn message into sink record.",error.message);super.emit("error","Failed to turn message into SinkRecord: "+error.message);returnmessage;}}
The text was updated successfully, but these errors were encountered:
static_messageToRecord(message){//check if a converter has already turned this message into a recordif(message&&typeofmessage.value==="object"&&messageinstanceofSinkRecord){returnmessage;}try{constrecord=newSinkRecord();// fix in hereconstmsgTemp=JSON.parse(message.value.toString());constmsgValue=JSON.parse(msgTemp);record.kafkaOffset=message.offset;record.key=message.key;record.partition=message.partition;record.keySchema=msgValue.keySchema;record.timestamp=msgValue.timestamp;record.value=msgValue.value;record.valueSchema=msgValue.valueSchema;returnrecord;}catch(error){debug("Failed to turn message into sink record.",error.message);super.emit("error","Failed to turn message into SinkRecord: "+error.message);returnmessage;}}
class SinkConfig
The text was updated successfully, but these errors were encountered: