Closed percivalalb closed 4 months ago
Apologies - here's the logic I see for sending a HTTP request and decoding it, which is the top of the stack trace that you provided.
if res.StatusCode < 200 || res.StatusCode >= 400 {
err = &TwilioRestError{}
if decodeErr := json.NewDecoder(res.Body).Decode(err); decodeErr != nil {
err = errors.Wrap(decodeErr, "error decoding the response for an HTTP error code: "+strconv.Itoa(res.StatusCode))
return nil, err
}
return nil, err
}
I see the error message in your response, but I don't see where this code could panic. Is it possible you can provide more of a stack trace or more details about what request was failing?
Hi Kevin,
I've just had a look at the stacktrace again and followed it back to an issue within my code base. I jumped the gun here, appreciate you putting time into looking though. Sorry for the false alarm!
Issue Summary
On Feb 14th 2024 the following occurred https://status.twilio.com/incidents/dhb0hj0dm9qf during this time saw some 503's from the Twilio API. This manifested as the following error in our Golang service (see Expection/Log section) causing the code to panic.
Steps to Reproduce
Exception/Log
Technical details: