stempler / gradle-versioneye-plugin

Plugin for Gradle to update your project's dependencies status on www.versioneye.com
MIT License
31 stars 5 forks source link

versionEyeUpdate fails with HttpResponseException #7

Closed johnjohndoe closed 9 years ago

johnjohndoe commented 9 years ago

I just run ./gradlew versionEyeUpdate which fails with the following exception?

Execution failed for task ':app:versioneye-update'.
> groovyx.net.http.HttpResponseException: Gateway Time-out

Maybe, the API of VersionEye changed? /cc @reiz

reiz commented 9 years ago

@johnjohndoe Does this happen every time? Or was it a one hit wonder? The API didn't changed. Maybe the API was down for a while. That could be possible.

johnjohndoe commented 9 years ago

Today I receive this error:

Execution failed for task ':app:versioneye-update'.
> groovyx.net.http.HttpResponseException: Internal Server Error
johnjohndoe commented 9 years ago

Steps to reproduce for an Android application project:

  1. Delete versioneye.projectkey and versioneye.projectid from app/gradle.properties
  2. Remove the associated project from versioneye.com if created previously
  3. Run ./gradlew versionEyeCreate
  4. Run ./gradlew versionEyeUpdate
stempler commented 9 years ago

I'm having the same problem with my VersionEye projects - but did not yet have the time to further check on it. I hope to do it on the weekend and see if I get a useful error message from the server.

reiz commented 9 years ago

@stempler Let me know if it is an issue with the API.

stempler commented 9 years ago

@reiz I tried it also via www.versioneye.com/api with the same result. The server gives no more information than it being an internal error. Could it be an issue with the generated pom.xml that is being uploaded? Here a minified version that I used for the test:

<project>
  <name>hale-platform</name>
  <groupId></groupId>
  <version>3.0.0</version>
  <artifactId>hale-platform</artifactId>
  <dependencies>
    <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-opengis</artifactId>
      <version>8.0</version>
    </dependency>
  </dependencies>
</project>
reiz commented 9 years ago

@stempler That looks fine so far. There was a bug on production that prevented the API accessing ElasticSearch and ohter backendend services. Can you please try again? Maybe it was related to that issue.

reiz commented 9 years ago

@stempler I just saved your xml content into a pom.xml file and uploaded it on the API page to create a new project and it worked. I got back a JSON document. I guess the problem in the past days was related to the configuration issue I mentioned in the prev. post. Please try again and confirm that it works for your.

johnjohndoe commented 9 years ago

Running ./gradlew versionEyeUpdate worked for me just now. Thank you!

stempler commented 9 years ago

Works for me now again as well. @reiz Thanks for the fix!