Meteor error: “com.meteor.webapp.WebAppException: Error parsing asset manifest”

旧街凉风 提交于 2019-12-13 02:07:19

问题


I have an error when i run my app in my android device with:

meteor run android-device --settings settings.json --mobile-server=myip:port

I have deployed my app in my VPS with MUP (Meteor up). The app in my device seems work good and is able to communicate with my VPS but i have this error:

I20160516-20:17:03.059(2)? W/MeteorWebApp( 3915): Download failure I20160516-20:17:03.059(2)? W/MeteorWebApp( 3915): com.meteor.webapp.WebAppException: Error parsing asset manifest I20160516-20:17:03.060(2)? W/MeteorWebApp( 3915): at com.meteor.webapp.AssetManifest.(AssetManifest.java:80) I20160516-20:17:03.060(2)? W/MeteorWebApp( 3915): at com.meteor.webapp.AssetBundleManager$1.onResponse(AssetBundleManager.java:112) I20160516-20:17:03.060(2)? W/MeteorWebApp( 3915): at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) I20160516-20:17:03.061(2)? W/MeteorWebApp( 3915): at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) I20160516-20:17:03.061(2)? W/MeteorWebApp( 3915): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) I20160516-20:17:03.061(2)? W/MeteorWebApp( 3915): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) I20160516-20:17:03.062(2)? W/MeteorWebApp( 3915): at java.lang.Thread.run(Thread.java:818) I20160516-20:17:03.062(2)? W/MeteorWebApp( 3915): Caused by: org.json.JSONException: Value (JSONObject.java:160) I20160516-20:17:03.063(2)? W/MeteorWebApp( 3915): at org.json.JSONObject.(JSONObject.java:173) I20160516-20:17:03.063(2)? W/MeteorWebApp( 3915): at com.meteor.webapp.AssetManifest.(AssetManifest.java:39)

I don't understand why i have this error. When i run the app in local without --mobile-server=myip:port, this error is not displayed.


回答1:


This is the hot code push failing due to the cordova manifest not being present. To confirm, visit http://myip:port/__cordova/manifest.json which should return a json document similar to http://myip:port/manifest.json (non-cordova). If you get your application/html page from the cordova url instead, this means your build didn't include the mobile platform (did you remove them before building?)

UPDATE: you also need to make sure to include mobileSettings and likely serverOnly in your mup.js config. See lib/modules/meteor/build.js in mup for reference to those options.



来源:https://stackoverflow.com/questions/37261181/meteor-error-com-meteor-webapp-webappexception-error-parsing-asset-manifest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!