Pod install fails due to CDN Error (403)

Bitrise Build Issue Report template

Description of the issue

Due to project updates, I cleared the Cocapods cache, but now the builds fails due to:

Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
[!] Unable to add a source with url `https://cdn.cocoapods.org/` named `trunk`.
You can try adding it manually in `/Users/vagrant/.cocoapods/repos` or via `pod repo add`.
pod install failed: exit status 1, retrying without --no-repo-update ...
$ pod "_1.11.3_" "repo" "update"
[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/CocoaPods-version.yml Response: 403 <!DOCTYPE html>

Later in the log there’s a HTML dump with a Cloudflare Captcha form. Pretty clear what’s going on here, but how do I resolve the issue?

Environment:

Where did the issue happen?

Bitrise stack: Xcode 13.3.x.

Which build Step causes the issue and which version of the step?

Cocoapods 2.x.x (2.2.1)

Reproducibility

Waited for some time (15-30 mins) between rebuilds, but the issue persists.

Local reproduction

Nope, works as it should locally.

Build log

All relevant logs in the description.

1 Like

There appears to be an open issue about this in the Cocoapods Github repo.

Oh yes, and this is reproducible locally as well. But not for all the devs in the team, so results may vary locally, but Bitrise is affected for sure.

I am seeing this same issue, however when i run my bitrise.yml locally I do not get the error.

So it looks like it is something going on between bitrise and Cocoapods

@angus.munro , the issue is fixed for the time being, but it hasn’t been fully resolved, for more info see this update. In case you continue to experience issues, this workaround resolved the issue for us in Bitrise, I haven’t removed it yet so can’t say if it’s needed anymore.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.