Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot code push to android mobile not working, Expected ':status' header not present #93

Open
cdcv opened this issue Dec 27, 2017 · 3 comments

Comments

@cdcv
Copy link

cdcv commented Dec 27, 2017

A meteor-now project yields two errors that block hot code push to Android devices from working. Effectively, this means that we can't use meteor-now to deploy this project. Not sure if this is a general problem affecting all projects.

When the same project is deployed to Meteor's Galaxy servers, hot code push works as expected. Also, hot code push to ios (using meteor-now) I believe works correctly, though need to re-test this.

Using meteor-now, the hot code push code manifest does not appear to download correctly to the android device, yielding the error on the meteor console connected to the device:

meteor webapp.js:71) Error: Error downloading asset manifest

This appears to be because of the other error:

java.net.ProtocolException: Expected ':status' header not present

The manifest is being served from the meteor-now server, as the following yields the manifest:
https://my_project_url.com/__cordova/manifest.json

The manifest served by meteor-now server is is identical (except for the hashes) to the manifest served when the project is deployed to galaxy.

Thanks for your help.

@kwuite
Copy link

kwuite commented May 8, 2018

@cdcv, I am having the exact same issue. Just today I traced back the problem from changes I made to our kubernetes nginx-controller version.

In version 0.8.3 Android has no issues in fetching the manifest. In versions 0.9 > 0.10.2, I get com.meteor.webapp.WebAppException: Error downloading asset manifest caused by java.net.ProtocolException: Expected ':status' header not present.

I am now testing new versions of the controller and figuring out the difference in 0.8.3 and 0.9.x to understand why this is happening.

In case I find a resolution I will post it online.

@kwuite
Copy link

kwuite commented May 8, 2018

The issue was resolved after updating to kubernetes version 0.14.0.

@wildhart
Copy link

I fixed this same problem by upgrading cordova-plugin-meteor-webapp with:

meteor add cordova:cordova-plugin-meteor-webapp@1.6.0

and then redeploying fixed the hot code push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants