It was missing the require of 'open-uri'.  Changed to use Excon.