sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

403 Forbidden @ dl.bintray.com

Open astout opened this issue 5 years ago • 2 comments

Environment

How do you use Sentry?

  • Sentry SaaS (sentry.io)

Which SDK and version?

@sentry/react-native 1.3.3 (upgraded to 1.9.0 while troubleshooting)

Steps to Reproduce

  1. CI (Bitrise) builds of React Native app worked up until today
  • Even re-running old builds that were successful previously are now failing

Expected Result

Android App is able to build with RNSentry

Actual Result

Android App is unable to build with RNSentry

From build logs:

File raw-gradle-output.log

Caused by: org.gradle.api.resources.ResourceException: Unable to load Maven meta-data from https://dl.bintray.com/getsentry/sentry-android/com/facebook/react/react-native/maven-metadata.xml.

File build.gradle

...
allprojects {
    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }
        maven {
            url = "https://dl.bintray.com/getsentry/sentry-android"
        }

        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}
...

References

  • https://github.com/getsentry/sentry-android/issues/270
  • https://github.com/getsentry/sentry-react-native/issues/767

The above references recommend dl.bintray.com domain for maven, but currently dl.bintray.com domain is all 403 Forbidden. It looks like the service has been sunset by JFrog. Is there an alternative source for the maven resources?

astout avatar May 04 '21 23:05 astout

It looks like it may have been some kind of outage. I don't fully understand how the maven resource fetching works, I'm still unable to manually fetch the resource mentioned above, but my CI (Bitrise) seems to be able to create the Android bundle now. My iOS build is currently not working, but this particular issue seems to have remedied itself.

astout avatar May 05 '21 17:05 astout

Thx :) For anyone else getting issues; replace

jcenter {
  url "https://jcenter.bintray.com/"
}

with just

jcenter()

and remove

maven {
  url "https://dl.bintray.com/getsentry/sentry-android"
}

Works for me 👌

kg-currenxie avatar Jul 20 '21 02:07 kg-currenxie