with error 'unitialized constant Provider::API'