Comments (6)
@brianleroux @mwbrooks indeed api.get() result is a zero bytes android.apk.
from node-phonegap-build-api.
Thanks @adicherafik @snowfix! I'll take a look at this in a few hours.
from node-phonegap-build-api.
Hmm... I'm having trouble reproducing this issue. Running the above code or the get.apps.id.platform.js example will download the android.apk
with the correct number of bytes (and it installs okay).
A few ideas that come to mind:
- Are you using version
0.3.3
of the library? - Does your account have access to that app ID?
- Perhaps it was a PhoneGap/Build hiccup? Can you try rerunning the example again?
from node-phonegap-build-api.
Indeed @mwbrooks , this was a temporary build.phonegap.com issue: today the download takes place normally:
$ node download.js
$ ls -al android.apk
-rw-r--r-- 1 kowalskif staff 356441 Jun 6 08:45 android.apk
Thanks to have looked into this. We will try to handle the time-out case as a standard error condition. BTW, we were indeed using 0.3.3
. You can consider the issue closed.
from node-phonegap-build-api.
BTW, I do not have the necessary privileges to close the issue.
from node-phonegap-build-api.
As a heads up, the api
object (and helper functions) map all options
to request
.
So, you can use the timeout
option supported by request
instead of implementing your own.
Example:
// timeout request after 30 seconds
api.get('/apps/427391/android', { timeout: 30000 }).pipe(fs.createWriteStream('android.apk'));
from node-phonegap-build-api.
Related Issues (20)
- Implement PUT apps/:id/collaborators/:id
- Implement POST keys/:platform
- Implement DELETE apps/:id
- Implement DELETE apps/:id/collaborators/:id
- Implement DELETE keys/:platform/:id
- Multi-part forms are not supported HOT 1
- Errors are not caught
- File paths do not expand home directory (~)
- File Upload Progress HOT 4
- Proxy HOT 6
- Phonegap + node js HOT 4
- Wrong hadnling of 302 redirects
- Please update readme.js so that links point to the API documentation HOT 2
- key_id in build options? HOT 2
- Saved Token HOT 3
- node js build API upload error 411 HOT 1
- Add Bithound Badge
- Put app with file option results in 500 errors and non-working app; using phonegap ui does work...
- Build Android without signing
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 node-phonegap-build-api.