Closed philipnrmn closed 3 years ago
In some circumstances, the signalflow stream server can return error messages with a null message value
message
{ "type": "error", "error": 400, "errorType": "ANALYTICS_INTERNAL_ERROR", "message": null }
signalfx-go will panic in this circumstance because it attempts to cast message, if present, to string. A nil check on the message value avoids the panic.
In some circumstances, the signalflow stream server can return error messages with a null
message
valuesignalfx-go will panic in this circumstance because it attempts to cast
message
, if present, to string. A nil check on themessage
value avoids the panic.