We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59da89b commit 5a0f3c6Copy full SHA for 5a0f3c6
1 file changed
util/billing.go
@@ -72,17 +72,20 @@ func getArcInstance(arcID string) (ArcInstance, error) {
72
req.Header.Add("cache-control", "no-cache")
73
74
res, err := http.DefaultClient.Do(req)
75
+ fmt.Println("Requesting:", url)
76
if err != nil {
77
log.Println("error while sending request: ", err)
78
return response, err
79
}
80
defer res.Body.Close()
81
body, err := ioutil.ReadAll(res.Body)
82
+ fmt.Println("bODY:", body)
83
84
log.Println("error reading res body: ", err)
85
86
87
err = json.Unmarshal(body, &response)
88
+ fmt.Println("RESPONSE:", response)
89
90
91
log.Println("error while unmarshalling res body: ", err)
0 commit comments