From 5b165bfc32cc4255245db0c052d08989de113725 Mon Sep 17 00:00:00 2001 From: varnit goyal Date: Fri, 3 Jan 2025 19:30:59 +0530 Subject: [PATCH] TP-5555 | hotfix for error --- service/ErrorProcessor.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/service/ErrorProcessor.go b/service/ErrorProcessor.go index 64f6403..5972d16 100644 --- a/service/ErrorProcessor.go +++ b/service/ErrorProcessor.go @@ -142,7 +142,11 @@ func (ep *ErrorProcessor) ProcessError(error []byte) { ep.logger.Error("error in unmarshalling exception", zap.Error(err)) return } - extraMap := payload.Extra.(map[string]interface{}) + extraMap, conversionOk := payload.Extra.(map[string]interface{}) + if !conversionOk { + ep.logger.Error("error in unmarshalling exception") + return + } releaseId, ok := extraMap["release_id"].(string) if !ok { ep.logger.Error("Release id is not found")