Packaging failed. HTTP status: 400

You must Login before you can answer or comment on any questions.

For the last week or so, I haven't been able to distribute my package -- I always get the following error:

Packaging failed. HTTP status: 400

So besides the obvious question of "how can I fix this?", I have two other related questions:

  1. How can I see more details about this error?
  2. How can I distribute a package on my local machine (with no use of the distribution services)?

2 Answers

Titanium appears to have arbritrary limits for the number of files included and the overall size of the uploaded package (they are detailed in another thread on here somewhere).

I spent a while trying to work this out and found that making a copy of the project and deleting all the '.git' dirs solved the problem (they usually contain 100+ files if you commit a lot).

— answered 1 year ago by Jack Newcombe
answer permalink
2 Comments
  • It turned out to be some mysterious problem on the server side of things, as it packaged just fine the other day. But I'll keep this in mind, because I do use git (although last I knew it wasn't including my revision history in the package... hmph). Either way, thanks for the tip!

    — commented 1 year ago by Louis Acresti

  • In my case I'd accidentally copied the .git folder from another location, so if you're using GIT correctly within Titanium I imagine this won't occur. I also had some gzips lying around from building that shouldn't have been in there.

    Either way I found the sweet spot to be >900 files. Overall package size was around 10mb. Good luck :-)

    — commented 1 year ago by Jack Newcombe

hi Louis,

you can use e.error to check the error like this

xhr.onload = function() {
    if(xhr.status == 400) {
        alert(e.error);
    }
}

— answered 1 year ago by Mitul Bhalia
answer permalink
1 Comment
  • This isn't the problem I'm having. I'm having a problem within Titanium Studio while trying to create a distribution installer, not a problem with some AJAX code in my app.

    — commented 1 year ago by Louis Acresti

Your Answer

Think you can help? Login to answer this question!