Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native Android azure build failing while downloading a resource from https://dl.bintray.com/microsoftazuremobile/SDK #200

Open
sapramit opened this issue Aug 4, 2021 · 5 comments

Comments

@sapramit
Copy link

sapramit commented Aug 4, 2021

Report

Yes, I have searched existing issues and this is not a duplicate.

Environment

  • Platforms: Android
  • Android version: API 23 and above

Issues and Steps to Reproduce

Installed react-native-azurenotificationhub library, added steps to install on Android.

Added 'https://dl.bintray.com/microsoftazuremobile/SDK' in repos as per https://github.com/CatalystCode/react-native-azurenotificationhub/blob/master/docs/android-installation.md

allprojects {
repositories {
...
maven { url 'https://dl.bintray.com/microsoftazuremobile/SDK' }
}
}

Expected Behavior

The repositories should be downloaded and work as expected

Actual Behavior

Could not get resource 'https://dl.bintray.com/microsoftazuremobile/SDK/com/huawei/hms/update/2.0.6.302/update-2.0.6.302.pom'.
Could not GET 'https://dl.bintray.com/microsoftazuremobile/SDK/com/huawei/hms/update/2.0.6.302/update-2.0.6.302.pom'. Received status code 502 from server: Bad Gateway

This was working till the last week. Now it has started failing. Please check.

@diegomichell
Copy link
Contributor

I'm also getting this error

@diegomichell
Copy link
Contributor

I see the problem is this

JFrog is shutting down Bintray, and this library is now published on Maven Central. Read more on our

This library and the documentation have to be updated according to the Android implementation, take a look here https://github.com/Azure/azure-notificationhubs-android

@hstorz
Copy link

hstorz commented Dec 9, 2021

I changed bintray to mavenCentral in this PR #205.
Strangely enough I got some lint build errors which I disabled with

 lintOptions {
        checkReleaseBuilds false
 }

Now I can build again.

@KevinUreAtIndustryX0
Copy link

So is the project dead or what? I'm still having this error 7 months later and the linked PR has never been merged.

If anyone sees this can someone explain to me why is issue only happening in our azure pipeline and not locally? the app builds fine on several developer macs but the pipeline throws

Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':react-native-azurenotificationhub:releaseRuntimeClasspath'.
   > Could not resolve com.facebook.react:react-native:+.
     Required by:
         project :react-native-azurenotificationhub
      > Failed to list versions for com.facebook.react:react-native.
         > Unable to load Maven meta-data from http://dl.bintray.com/microsoftazuremobile/SDK/com/facebook/react/react-native/maven-metadata.xml.
            > Could not get resource 'http://dl.bintray.com/microsoftazuremobile/SDK/com/facebook/react/react-native/maven-metadata.xml'.
               > Could not GET 'http://dl.bintray.com/microsoftazuremobile/SDK/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

@ka-sundberg
Copy link

ka-sundberg commented Mar 16, 2022

I actually didn't have the patience to wait for this. So created a fork, updated the maven path and published npm package here for anyone intrested
https://www.npmjs.com/package/react-native-azurenotificationhub-mavencentral

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants