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.
pod install --repo-update
Pods installed
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 : 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/
Executable Path: /Users/max/.rvm/gems/ruby-2.6.3/bin/pod
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
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
~/.cocoapodsis there some flag I can add to run this thing in verbose mode to see what happens underneath?
only "fixed" this by removing
~/.cocoapodsagain.
is this an expected behavior?
Fixed for me.
Most helpful comment
Fixed for me.