Vault: getting these error in my script after this commit https://github.com/hashicorp/vault/commit/72e177e5f3e12cf2030b50cf865fa971880e8948

Created on 28 Aug 2019  路  1Comment  路  Source: hashicorp/vault

Hi,

we have been using the vault API library for a very long time. and we never had this issue before.
since yesterday our automation job is failing and we are getting the below error log.

I think the commit made yesterday to some of the supporting library files such as go-retryablehttp is causing the issue.

it says CloseIdleConnections this method is not available to use.

please have a look on this and let me know if any additional details needed for this.

PS: I have also mentioned the commit link in the subject.. not sure though if that is the commit causing the issue.

Thanks
Ahmed

Error LOG:

github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp
../github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp/client.go:447:17: c.HTTPClient.CloseIdleConnections undefined (type *http.Client has no field or method CloseIdleConnections)
../github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp/client.go:507:16: c.HTTPClient.CloseIdleConnections undefined (type *http.Client has no field or method CloseIdleConnections)
../github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp/client.go:538:16: c.HTTPClient.CloseIdleConnections undefined (type *http.Client has no field or method CloseIdleConnections)
../github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp/client.go:545:15: c.HTTPClient.CloseIdleConnections undefined (type *http.Client has no field or method CloseIdleConnections)
../github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp/client.go:554:14: c.HTTPClient.CloseIdleConnections undefined (type *http.Client has no field or method CloseIdleConnections)

Most helpful comment

it was the go version ... have updated it resolved the issue.
previous version was 1.10.1
updated to 1.12.9

Thanks
Ahmed

>All comments

it was the go version ... have updated it resolved the issue.
previous version was 1.10.1
updated to 1.12.9

Thanks
Ahmed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Miserlou picture Miserlou  路  45Comments

jaxley picture jaxley  路  36Comments

SoMuchToGrok picture SoMuchToGrok  路  66Comments

ekristen picture ekristen  路  60Comments

wpg4665 picture wpg4665  路  39Comments