Cocoapods: CDN: trunk URL couldn't be downloaded

Created on 15 Jan 2021  ·  6Comments  ·  Source: CocoaPods/CocoaPods

I am trying to install dependencies with cocoapods but quite often I see CDN failing with timeout issue.
I have tried removing cache as well as entire folder ~/.cocoapods.

When I try to open problematic URL with browser or curl - it work just fine and it takes less than a second to fetch the podspec.

Report

What did you do?

pod install --repo-update

What did you expect to happen?

Pods installed

What happened instead?

An error occurred:

Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../../../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../../../node_modules/react-native/third-party-podspecs/glog.podspec`
[!] CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/6/8/4/Appboy-iOS-SDK/3.31.2/Appboy-iOS-SDK.podspec.json Response: Timeout was reached

❗ please note this is not the only error I'm seeing. sometimes it's a different library and sometimes it's many libraries at once.

CocoaPods Environment

Stack

   CocoaPods : 1.10.0
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin19]
    RubyGems : 3.0.8
        Host : Mac OS X 10.15.7 (19H15)
       Xcode : 12.2 (12B45b)
         Git : git version 2.28.0
Ruby lib dir : /Users/max/.rvm/rubies/ruby-2.6.3/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /Users/max/.rvm/gems/ruby-2.6.3/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

Most helpful comment

only "fixed" this by removing ~/.cocoapods again.
is this an expected behavior?

Fixed for me.

All 6 comments

only "fixed" this by removing ~/.cocoapods again.
is this an expected behavior?

Not sure at this time, could have been a network issue?

I doubt. I have tried many (~10) times in 30 minutes and immediately after getting this error I was checking failing URL in browser - and it was working. The problem was consistent and wasn't fixed until I removed ~/.cocoapods. Since then everything works well 🤷

CDN is an issue for me for a few latest days as well, it just stuck at updating it, and then gives me Time out error with link, and I can easily open those links. It's not a network issues as I can do pod repo remove trunk and after that it works again until it tries to update repo next time

Over these days this issue has happened to me several times

  • every time with different podspec being an issue
  • every time opening URL directly was working fine
  • network was stable all the time during execution
  • was only solved by removing ~/.cocoapods

is there some flag I can add to run this thing in verbose mode to see what happens underneath?

only "fixed" this by removing ~/.cocoapods again.
is this an expected behavior?

Fixed for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Curtis-Halbrook picture Curtis-Halbrook  ·  3Comments

pallaviMN picture pallaviMN  ·  3Comments

steffendsommer picture steffendsommer  ·  3Comments

sonu5 picture sonu5  ·  3Comments

k06a picture k06a  ·  3Comments