Search code examples
htmlweb-applicationsvs-web-application-projectfirefox-os

Error :Submitting the app to Firefox Market Place


I am trying to submit a new app into the firefox marketplace but I don`t know why it is showing the below error..

Your app failed validation with 1 error. Error extracting manifest from zip file.

I cannot install it through server to b2g mobile too as mentioned here.. as it is saying "Download Failed in the mobile.

Here`s my manifest file

{ "name": "Check Location", "description": "This app allows you to check your Location!", "launch_path": "/app.html", "developer": { "name": "RB", "url": "http://nothing.me" }, "icons": { "16": "/img/icon16.png", "32": "/img/icon32.png", "48": "/img/icon48.png", "64": "/img/icon64.png", "128": "/img/icon128.png" }, "default_locale": "en",  "permissions": { "geolocation": {
            "description" : "Marking out user location"
        } } }

Here`s package.manifest

{ "name": "Check Location", "description": "This app allows you to check your Location!", "launch_path": "/app.html", "developer": { "name": "RB", "url": "http://nothing.me" }, "icons": { "16": "/img/icon16.png", "32": "/img/icon32.png", "48": "/img/icon48.png", "64": "/img/icon64.png", "128": "/img/icon128.png" }, "default_locale": "en",  "permissions": { "geolocation": {
            "description" : "Marking out user location"
        } } }

I have done pasting Index.html, css and js folder into the package folder and zipped it as they have mentioned. But when I upload the zip file into the market place it is showing the error.. Please help me with this.. Check out the complete code Here


Solution

  • The error simply denotes that system cannot find manifest.webapp from your zip file. https://github.com/mozilla/zamboni/blob/master/mkt/developers/forms.py#L512

    You should make sure manifest.webapp is in root directory of your .zip file.

    One possible mistake might be doing like below:

    zip -r foo.zip foo/*
    

    This will create a zip file whose root only contains foo folder, thus the submission system cannot find your manifest.

    You should instead do:

    cd foo 
    zip -r foo.zip *
    

    Hope it helps!