Select to view content in your preferred language

Failed to save app

5314
9
Jump to solution
07-12-2015 05:22 PM
AndrewTerwiel
Frequent Contributor

Can anyone please help me find out what is causing this problem?

When I try to save a webapp that I've created in Web Appbuilder I get this message: "Failed to save app".

The Chrome developer tools console show these errors:

POST http://dpc0159.civic.npdc.govt.nz:3344/webappbuilder/rest/apps/2/saveconfig 502 (Proxy Error ( The specified network name is no longer available.  ))k @ init.js:162(anonymous function) @ main.js:1586k @ init.js:199m @ init.js:199f.resolve @ init.js:201(anonymous function) @ init.js:815k @ init.js:199m @ init.js:199f.resolve @ init.js:201a @ init.js:200k @ init.js:200m @ init.js:199f.resolve @ init.js:201a @ init.js:200k @ init.js:200m @ init.js:199f.resolve @ init.js:201a @ init.js:200k @ init.js:200m @ init.js:199f.resolve @ init.js:201q @ init.js:160f @ init.js:164

main.js:1551

SyntaxError: Unexpected token <

    at Object.parse (native)

    at a.json (http://js.arcgis.com/3.13/init.js:242:182)

    at n (http://js.arcgis.com/3.13/init.js:240:340)

    at q [as handleResponse] (http://js.arcgis.com/3.13/init.js:160:111)

    at XMLHttpRequest.f (http://js.arcgis.com/3.13/init.js:164:201)

I've tried debugging and watching various objects, but I can't see what the cause is.

Tags (1)
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Andrew,

   I notice that you are using your fully qualified machine name (dpc0159.civic.npdc.govt.nz:3344) have you tried just using your simple machine name?

View solution in original post

9 Replies
RobertScheitlin__GISP
MVP Emeritus

Andrew,

   Have you manually edited any of your json files? I sounds like you have introduced a syntax issue in one of your json files.

XanderBakker
Esri Esteemed Contributor

In case you did, validate the json with something like: http://jsonlint.com/

AndrewTerwiel
Frequent Contributor

Hi Robert,

That's what it looked like to me too. However, even a fresh installation of web appbuilder on my PC produces the same issue.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Andrew,

   So was there something that you you can remember that triggered this?

0 Kudos
AndrewTerwiel
Frequent Contributor

No. It began as an intermittent problem, but has now escalated to a

constant one. Do you think it could be anything to do with our corporate

proxy?

On Mon, Jul 13, 2015 at 11:51 PM, Robert Scheitlin, GISP <geonet@esri.com>

0 Kudos
NathanielRoth2
Deactivated User

I'm having exactly the same problem.

I seem to be able to recreate the problem by inserting multiple images (in my case small versions of icons) into the body of the message for the splash or about widgets. If I remove them, I can save again fine.

If I use Save As, that works fine as well.

other info: I'm using the AGOL version of Web App Builder.

NathanielRoth2
Deactivated User

Andrew Terwiel​ Do you have any items such as multiple images or special formatting in any of the widgets included in your app? I suspect the new version of webapp builder may be having issues with saving updates to apps when they're present. 

Based on your response, it sounds like you're using the desktop developer's version while I'm using AGOL. I'm debating pushing ESRI on this since it's becoming "inconvenient" for me. 

0 Kudos
AndrewTerwiel
Frequent Contributor

Hi Nathaniel. As I stated earlier, in reply to one of Robert's posts, this

occurs even on a fresh web appbuilder installation.

RobertScheitlin__GISP
MVP Emeritus

Andrew,

   I notice that you are using your fully qualified machine name (dpc0159.civic.npdc.govt.nz:3344) have you tried just using your simple machine name?