You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was already reported here but the title of that issue is misleading. The problem is not with building the client, the problem is that (*sigV4RoundTripper).RoundTrip() assumes that the request has a non-nil body, as it tries to copy it using io.Copy(). That's what causes the panic.
I got this calling the API Buildinfo(), which is using a GET request (with nil body). For that matter, AMP doesn't expose the build info API at all (returns 404, as I could see using awscurl), but I don't even get there as the RoundTripper panics before the request is even sent.
Calling QueryRange() (or any other POST request) with the same config works perfectly fine.
Hi there,
This issue was already reported here but the title of that issue is misleading. The problem is not with building the client, the problem is that
(*sigV4RoundTripper).RoundTrip()
assumes that the request has a non-nil body, as it tries to copy it usingio.Copy()
. That's what causes the panic.I got this calling the API
Buildinfo()
, which is using aGET
request (withnil
body). For that matter, AMP doesn't expose the build info API at all (returns 404, as I could see usingawscurl
), but I don't even get there as theRoundTripper
panics before the request is even sent.Calling
QueryRange()
(or any otherPOST
request) with the same config works perfectly fine.This is what I get:
The text was updated successfully, but these errors were encountered: