thebergamo / react-native-fbsdk-next

MIT License
633 stars 165 forks source link

`Could not resolve com.facebook.android:facebook-android-sdk:16.+.` due to Bad Gateway for https://oss.sonatype.org #501

Closed uzaymacar closed 1 month ago

uzaymacar commented 1 month ago

🐛 Bug Report

> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
   > Could not resolve com.facebook.android:facebook-android-sdk:16.+.
     Required by:
         project :app > project :react-native-fbsdk-next
      > Failed to list versions for com.facebook.android:facebook-android-sdk.
         > Unable to load Maven meta-data from https://oss.sonatype.org/content/repositories/snapshots/com/facebook/android/facebook-android-sdk/maven-metadata.xml.
            > Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/com/facebook/android/facebook-android-sdk/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

To Reproduce

Using Expo SDK 49, with React Native version 0.72.10
react-native-fbsdk-next version 12.1.4

It fails for EAS build with Android: eas build --platform android

Environment

System:
  OS: macOS 12.5
  CPU: (10) arm64 Apple M1 Max
  Memory: 331.11 MB / 32.00 GB
  Shell:
    version: 5.8.1
    path: /bin/zsh
Binaries:
  Node:
    version: 18.12.1
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 8.19.2
    path: /usr/local/bin/npm
  Watchman:
    version: 4.9.0
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.11.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.2
      - iOS 16.2
      - macOS 13.1
      - tvOS 16.1
      - watchOS 9.1
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.1 AI-221.6008.13.2211.9514443
  Xcode:
    version: 14.2/14C18
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.7
    path: /usr/bin/javac
  Ruby:
    version: 2.6.8
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.10
    wanted: 0.72.10
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
uzaymacar commented 1 month ago

This was working fine yesterday, have changed nothing and hit the above bug. I'm assuming the contents of the URL got moved at https://oss.sonatype.org? Can the maintainers take a look at this and help?

uzaymacar commented 1 month ago

It was resolved a few hours ago, seems to be a problem with Sonatype / Maven rather than Expo, EAS, or this library. Sorry about the confusion -- closing the issue.