Home Features Docs Blog Support GitHub

MOE SDK from Jitpack?


(Thomas Gallinari) #1

I build my app on Travis CI, it worked great until today, now I have an HTTP 522 error when downloading MOE SDK dependency. Is it from MOE side or Jitpack side?

Using implicit moe-sdk version: 1.4.2
Resolved moe-gradle version: 1.4.5
Using Maven-based MOE SDK
Resource missing. [HTTP GET: https://jitpack.io/org/multi-os-engine/moe-sdk/1.4.2/moe-sdk-1.4.2.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 522 Origin Connection Time-out: https://jitpack.io/org/multi-os-engine/moe-sdk/1.4.2/moe-sdk-1.4.2.zip)]
Resource missing. [HTTP GET: https://jitpack.io/org/multi-os-engine/moe-sdk/1.4.2/moe-sdk-1.4.2.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 522 Origin Connection Time-out: https://jitpack.io/org/multi-os-engine/moe-sdk/1.4.2/moe-sdk-1.4.2.zip)]
Resource missing. [HTTP GET: https://jitpack.io/org/multi-os-engine/moe-sdk/1.4.2/moe-sdk-1.4.2.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 522 Origin Connection Time-out: https://jitpack.io/org/multi-os-engine/moe-sdk/1.4.2/moe-sdk-1.4.2.zip)]
FAILURE: Build failed with an exception.
* Where:
  Build file '/Users/travis/build/INTENT-TECHNOLOGIES/intent-mobile/ios/build.gradle' line: 16
* What went wrong:
  A problem occurred evaluating project ':ios'.
  > Failed to apply plugin [id 'moe']
    > Could not resolve all dependencies for configuration ':ios:moeMavenSDK'.
      > Could not resolve org.multi-os-engine:moe-sdk:1.4.2.
      Required by:
          project :ios
        > Could not resolve org.multi-os-engine:moe-sdk:1.4.2.
          > Could not get resource 'https://jitpack.io/org/multi-os-engine/moe-sdk/1.4.2/moe-sdk-1.4.2.zip'.
            > Could not HEAD 'https://jitpack.io/org/multi-os-engine/moe-sdk/1.4.2/moe-sdk-1.4.2.zip'. Received status code 522 from server: Origin Connection Time-out

ios/build.gradle:

buildscript {
  dependencies {
    // Multi-OS Engine plugin
    classpath group: 'org.multi-os-engine.community', name: 'moe-gradle', version: '1.4.5'
  }
}

apply plugin: 'moe'

As I said, it worked fine until now. And I’m not sure why it would try to fetch MOE from Jitpack…

Any idea?


(Thomas Gallinari) #2

There seems to be an issue with Jitpack… https://github.com/jitpack/jitpack.io/issues/3973


#3

In your gradle file you could put jcenter()(where the MOE libs are hosted) before the jitpack in repositories block so it will be picked up first:

repositories {
    mavenCentral()
    mavenLocal()
    jcenter()

    maven { url 'https://jitpack.io' }
}

Hopefully this could prevent the same issue from happen again.


(Thomas Gallinari) #4

Thanks for your help @Noisyfox.

I already have declared jitpack last:

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