Skip to content

Commit

Permalink
fix: bundle download failed - context canceled
Browse files Browse the repository at this point in the history
Bundle download failed: bundle read failed: archive read failed: context canceled

Signed-off-by: mikaelcabot <[email protected]>
  • Loading branch information
mikaelcabot authored and ashutosh-narkar committed Aug 24, 2020
1 parent 07ec39d commit 6b461a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,7 @@ func (c Client) Do(ctx context.Context, method, path string) (*http.Response, er
req.Header.Add(key, value)
}

hCtx, cancel := context.WithCancel(ctx)
defer cancel()

req = req.WithContext(hCtx)
req = req.WithContext(ctx)

err = c.config.authPrepare(req)
if err != nil {
Expand Down

0 comments on commit 6b461a0

Please sign in to comment.