Uploading large file times out

Hi, I’m trying to do a test where user(s) upload a large file to an endpoint and I see whether that slows down the system for other users, however the request keeps timing out with the error:

WARN[0194] Request Failed net/http: request canceled (Client.Timeout exceeded while awaiting headers)

Is there a way to extend this timeout so I can run the test?

Hi @sstratton,

You can use the params to specify a timeout, by default it is 60seconds.

2 Likes