I get this error from time to time and it last for 5-10mins and things get back to normal after that
NameError: undefined local variable or method `finished_env' for #IndexTank::ClientResponseMiddleware:0x7fea9ffb1cd8
Here is backtrace
This was a bug in the error handling of the API. It's simply hiding communication errors with the API, in this case caused by a short period of downtime.
The fix is here 3341bd2
It'll be included in the next gem release.