We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c17ea6c commit c74c8d2Copy full SHA for c74c8d2
internal/metrics/api.go
@@ -95,6 +95,9 @@ func (cl *APIClient) SendMetrics(metrics []APIMetric) error {
95
defer resp.Body.Close()
96
97
if resp.StatusCode < 200 || resp.StatusCode > 299 {
98
+ if resp.StatusCode == 403 {
99
+ logger.Debug(fmt.Sprintf("authorization failed with api key of length %d characters", len(cl.apiKey)))
100
+ }
101
bodyBytes, err := ioutil.ReadAll(resp.Body)
102
body := ""
103
if err == nil {
0 commit comments