Comments (5)
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.
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.
This issue has been automatically closed due to inactivity. If it is still valid, please post a comment.
from gradle-download-task.
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.
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)
- Could not find method src() on extension 'download' HOT 2
- Explicit file naming for src property HOT 1
- Only if Modified Recipe to then run Zip or other methods HOT 6
- Documentation unclear about `useETag` HOT 2
- Does plugin support to download file from local a relative file? HOT 6
- Configuration-cache-safe use of download and verify extensions HOT 14
- Problems when use with Kotlin Gradle Plugin 1.7.20 HOT 10
- responseInterceptor missing HOT 3
- Support progress bar when executing task via IntelliJ HOT 1
- How to send Post Body Parameter (data) HOT 4
- Downloading from Internal Repo using Token HOT 10
- untar and unxz HOT 1
- SSLPeerUnverifiedException jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com HOT 7
- query parameters in src url HOT 2
- Download plugin doesn't encoded files HOT 2
- Allow `src` to take `URI` objects HOT 1
- Cached download should be ignored if URL changes HOT 4
- Can download task add new property to avoid directly throw exception? HOT 7
- Bad request after redirect HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-download-task.