Software Archive
Read-only legacy content
17061 Discussions

Unable to build. Please verify that you are connected to the internet and try again. Maximum request length exceeded.

Paula_A_
Beginner
1,219 Views

When I try to build my app I get this error "Unable to build. Please verify that you are connected to the internet and try again. Maximum request length exceeded."

Is there a way to fix this? Can I change the settings somewhere to modify the maximum request length?

0 Kudos
7 Replies
PaulF_IntelCorp
Employee
1,219 Views

This looks like a generic network connection error message. Confirm that you have a good Internet connection. Also, if you are behind a corporate proxy or firewall, that could be causing problems. Are you logged into the XDK? Try using the XDK from another network (at home, for example) to determine if it is the network connection or something to do with your system.

0 Kudos
Paula_A_
Beginner
1,219 Views

My connection is good, I never had any problems with it, and I built this same app before without problems too. I´m not in a proxy, at home it won't work. The only change I did from the last time I built this same app was to change the settings to fullscreen and choose landscape.

I have found some other people having the same problem in other forums, but no solution so far. Some people say is the size of the app that is too large for the XDK, although they are not really so big.

So I thought if there was a way to change the maximum request allowed somehwere maybe that fixes it. I don't know. I appreciate if you can help.

0 Kudos
PaulF_IntelCorp
Employee
1,219 Views

Does your "source directory" point to the "project directory" in your project settings (on the Projects tab)? See this doc page: https://software.intel.com/en-us/xdk/docs/using-the-projects-tab#projectfiles

If so, there may be a problem with some new \plugins directories getting pushed to the build system. Please check to see if your sources are stored at the root of the project or in a subdirectory of the project (such as www).

0 Kudos
Paula_A_
Beginner
1,219 Views

The source directory points to the project directory.

I'm not sure I understand what the sources are. In the root of the project (where the index.html is) I have some stuff in subfolders and some stuff in .zip. This was all made by Construct2 from a game I made.

0 Kudos
PaulF_IntelCorp
Employee
1,219 Views

I suspect there are some directories being included in your project that do not belong there... Can you provide a screen shot of the top of the Projects tab and also of the your project directory, clearly showing the directories inside your project directory as well as one showing the location of your index.html file (as shown in my samples attached to this post).

screen-shot.png

capture.png

capture-2.png

 

0 Kudos
Paula_A_
Beginner
1,219 Views

Is there a way I can send you the screenshots by a private message or so?

0 Kudos
PaulF_IntelCorp
Employee
1,219 Views

For the benefit of anyone else who encounters this error message; the problem was caused by a set of large, non-source files in the project directory. This user's project directory and source directory pointed to the same location, and there were several large ZIP and APK files stored in the project directory.

Because the project directory and source directory pointed to the same location, these very large files were considered source files and were being included in the ZIP package that is sent up to the build server. These ZIP and APK files that were being added to the build package were overwhelming the size of the build package and were preventing a build from succeeding. (Had a build succeeded, the resulting APK would have likely been too large to install on a device because those extra ZIP and APK files would have been included inside the resulting built app.)

When you create a project, especially if you are creating a project that is exported from Construct2, make sure you create a www directory inside the project directory and keep your application source files in that directory (be sure to adjust the source directory location on the Projects tab by clicking the folder icon at the far right of the Source Directory field to point to that www directory). Any extraneous files that are not part of the source should be stored OUTSIDE of your source directory.

0 Kudos
Reply