I was testing my application which is written in flutter and suddenly I keep getting CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/CocoaPods-version.yml Response: 403 error. I am not sure why this is happening. This is the error I am getting in the log. Note: This project was working fine but however suddenly I keep getting these errors.
[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/CocoaPods-version.yml Response: 403 <!DOCTYPE html>
<!--[if lt IE 7]> <html lang="en-US"> <![endif]-->
<!--[if IE 7]> <html lang="en-US"> <![endif]-->
<!--[if IE 8]> <html lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en-US"> <!--<![endif]-->
<head>
<title>Attention Required! | Cloudflare</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" /><![endif]-->
<style>body{margin:0;padding:0}</style>
<!--[if gte IE 10]><!-->
<script>
if (!navigator.cookieEnabled) {
window.addEventListener('DOMContentLoaded', function () {
var cookieEl = document.getElementById('cookie-alert');
cookieEl.style.display = 'block';
})
}
</script>
<!--<![endif]-->
</head>
<body>
<div id="cf-wrapper">
<div id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
<div id="cf-error-details" >
<div >
<h1 data-translate="block_headline">Sorry, you have been blocked</h1>
<h2 ><span data-translate="unable_to_access">You are unable to access</span> cocoapods.org</h2>
</div><!-- /.header -->
<div >
<div >
<div >
<span ></span>
</div>
</div>
</div><!-- /.captcha-container -->
<div >
<div >
<div >
<h2 data-translate="blocked_why_headline">Why have I been blocked?</h2>
<p data-translate="blocked_why_detail">This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.</p>
</div>
<div >
<h2 data-translate="blocked_resolve_headline">What can I do to resolve this?</h2>
<p data-translate="blocked_resolve_detail">You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.</p>
</div>
</div>
</div><!-- /.section -->
<div >
<p >
<span >Cloudflare Ray ID: <strong >709ac7f028be46eb</strong></span>
<span >•</span>
<span ><span>Your IP</span>:..</span>
<span >•</span>
<span ><span>Performance & security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" target="_blank">Cloudflare</a></span>
</p>
</div><!-- /.error-footer -->
</div><!-- /#cf-error-details -->
</div><!-- /#cf-wrapper -->
<script>
window._cf_translation = {};
</script>
</body>
</html>
Any instructions how i could solve this?
CodePudding user response:
I am struggling with the exact same error now. I'm also getting this error suddenly when trying to build my flutter project on iOS. Maybe it's a cocoapods server error?
CodePudding user response:
There seems to be a problem with CloudFlare at the moment, status: https://github.com/CocoaPods/CocoaPods/issues/11355
CodePudding user response:
also getting this error! until fixed, you can try to bypass the CDN:
run:
pod repo remove trunk
and add to Podfile:
source 'https://cocoapods-cdn.netlify.app/'
or without CDN at all:
source 'https://github.com/CocoaPods/Specs.git'
CodePudding user response:
I found a temporary workaround that worked for me very well:
source 'https://cdn.cocoapods.org/'
target '...' do
...
end
require 'typhoeus'
Typhoeus::Config.user_agent = 'CocoaPods'
After that start pod deintegrate
and pod install
CodePudding user response:
I am also getting this error from Cloudflare side. I tried with totally different ip addresses and the same result. It should be temporary problem.
CodePudding user response:
Angular Ionic with Capacitor project, tried to run an iOS build, fails at 'pod install', seems like Cloudflare is registering these requests as DDoS attacks
CodePudding user response:
I am also getting this error.
I tried to download with adding this line to Podfile;
source 'https://cocoapods-cdn.netlify.app/
CocoaPods could not find compatible versions for a pod in Podfile.lock file.
CodePudding user response:
Stuck in same issue tried on my friend's mac working fine but there is some problem with mine even previously working projects are giving same error. and i have tried every given above solution and similar solutions.
CodePudding user response:
Also getting this error, I'm new to react-native and saw this as a solution
https://github.com/CocoaPods/CocoaPods/issues/10078#issuecomment-696481185
It does take a while to run but will work and install your pods successfully
CodePudding user response:
Edit: Working now
I am also getting this error, i think it's a Cloudflare server error.
Might be temporary