Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSSLErrorHint ¶
GetSSLErrorHint returns a hint string if the error is an SSL error, suggesting corporate proxy or NODE_EXTRA_CA_CERTS configuration.
func SanitizeAPIError ¶
SanitizeAPIError extracts the <title> content from HTML error responses, or returns the message as-is if it is not HTML.
Types ¶
type ConnectionErrorDetails ¶
ConnectionErrorDetails holds details about a connection error.
func ExtractConnectionErrorDetails ¶
func ExtractConnectionErrorDetails(err error) *ConnectionErrorDetails
ExtractConnectionErrorDetails walks the error chain up to 5 levels deep, looking for an error with a Code() string method, and checks if the code is a known SSL error.
Click to show internal directories.
Click to hide internal directories.