SSL error when build is download gems

I occasional get these SSL errors when a build is downloading gems. It happens randomly, any idea what could be causing it?

OpenSSL::SSL::SSLError: SSL_read:: sslv3 alert bad record mac
An error occurred while installing httpauth (0.2.0), and Bundler
cannot continue.
Make sure that gem install httpauth -v '0.2.0' succeeds before bundling.