occasionally we were hitting a point in our codepath where we were returning a single error from our fetch func back to dataloaden. Doing so ended up causing a panic index out of range.
the conditions seem to be if multiple keys get passed into fetch() but we only return a slice of 1 error. LoadThunk would get the key index and later use that index to set the error, however if 40 items were passed into fetch(), we get an our of range panic
occasionally we were hitting a point in our codepath where we were returning a single error from our fetch func back to dataloaden. Doing so ended up causing a panic
index out of range
.the conditions seem to be if multiple keys get passed into
fetch()
but we only return a slice of 1 error.LoadThunk
would get the key index and later use that index to set the error, however if 40 items were passed intofetch()
, we get an our of range panicsimplified example: