Comments (6)
I've been doing some research about this error. Activating the debug, it seemed to me that the problem could be related to Google changing the header field 'content-type' from 'application/protobuf' to 'application/binary' or something similar given that the statusCode was 200. So I commented the assert:
'assert(res.headers['content-type'] === 'application/protobuf', 'not application/protobuf response');' in the api.js file from the gpapi lib wich was throwing the error.
The result of this change is that now gp-download-meta and gp-download-info runs perfectly again, but when I try to make an actual download with gp-download, I get the following error:
RequestError: Error retrieving information from server. [DF-DFERH-01]
from node-google-play-cli.
thanks for the report...
commenting out the assert did seem to help me, are you sure that the app you're trying to download is compatible with the profile you're using?
try downloading a few other apps, do those work at all?
I might make a release with the assert removed...
from node-google-play-cli.
there's a prerelease 4.5.1-0 that uses the gpapi version without the assert. Give that a shot.
from node-google-play-cli.
Thank you for your fast answer. Finally I've realized that I was writting 'gp-download com.twitter.android twitter.apk' without the ">" symbol, so that's what I was getting a RequestError. Commenting out the assert seems to resolve the whole problem. I hope it is for good.
Again, thanks for your work and fast answer :)
from node-google-play-cli.
Google changed the header field 'content-type' from 'application/protobuf' to 'application/binary'
Will this be fixed ? @dweinstein
from node-google-play-cli.
The assert was removed in the current release
from node-google-play-cli.
Related Issues (13)
- DF-RPC-01
- details.appDetails.appCategory is always [ ] and details.appDetails.appType is always either APPLICATION or GAME
- Downloads old versions of apps
- I can't run it
- not support downloadingSplitDeliveryData yet
- LoginError: Error=BadAuthentication
- Error HOT 1
- Expected list of pairs from server
- LoginError: Error=BadAuthentication HOT 4
- LoginError: Error=BadAuthentication and Unhandled rejection Error HOT 1
- gp-download assertionError: require downloadUrl
- Where is the downloaded folder?
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-google-play-cli.