Code Monkey home page Code Monkey logo

Comments (5)

michel-kraemer avatar michel-kraemer commented on July 22, 2024

I'm not sure if Bitbucket requires this, but you may try to set preemptiveAuth true. This will make gradle-download-task send your credentials in the first request. (You can read more about this flag here: https://github.com/michel-kraemer/gradle-download-task#authentication)

Maybe this already helps. If not, I recommend starting Gradle with the -d flag to get debug output. Somewhere in the log there should be a section where you can see the contents of the HTTP request and the HTTP response. This might help you track down the issue.

from gradle-download-task.

github-actions avatar github-actions commented on July 22, 2024

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

from gradle-download-task.

github-actions avatar github-actions commented on July 22, 2024

This issue has been automatically closed due to inactivity. If it is still valid, please post a comment.

from gradle-download-task.

topherbuckley avatar topherbuckley commented on July 22, 2024

I'm also trying to download from a private (well internal) repo and not finding a way to do so without getting the same Not Found (HTTP status code: 404. Not sure if it matters, but the repo I'm trying to access is an institutional account with single-sign-on (SSO), so maybe this complicates things. Trying this to add preemptiveAuth true results in:

Could not find method preemptiveAuth() for arguments [true] on task ':foo:bar' of type de.undercouch.gradle.tasks.download.Download.

task as follows (actual project names changed):

task downloadModelFileRobot(type: Download) {
    preemptiveAuth true
    username System.getenv("GITHUB_USER")
    password System.getenv("GITHUB_TOKEN")
    src 'https://github.com/foo/bar'
    dest project.ext.ASSET_DIR + '/bar'
    overwrite false
}

Removing the preemptiveAuth true and adding the -d flag to the build, didn't appear to give anything helpful. I did a grep on the log as per grep -i 'downloadModelFileRobot\|http\|HTTP\|request|\response' log and didn't see anything resembling a HTTP request/response. Any ideas what grep to use to find this request/response you mentioned?

from gradle-download-task.

michel-kraemer avatar michel-kraemer commented on July 22, 2024

The error message Could not find method preemptiveAuth() indicates you're using an older version of gradle-download-task. Please update to the latest version and try again.

If it still does not work, please open a new issue instead of posting here on this old one. I will be more than happy to help you. Thanks.

from gradle-download-task.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.