New docker version has moved APIError class.