We're working on a new Umbraco site with version 7.1.4. Locally, everything works just fine. But on the test environment we can't get the preview function to work. It does a POST to /umbraco/backoffice/UmbracoApi/Content/PostSave followed by a GET of /umbraco/backoffice/UmbracoApi/Entity/GetAncestors.So far, so good. Everything looks fine. Except that all the JSON responses are prefixed with some "garbage", namely )]}',.
Where do I start with finding a solution for this?
Not sure which information is needed to help, but this should be a nice start I guess:
Do you have any configuration in web.config which will redirect/rewrite the response of 500 or 404 errors? I had a similar issue where I added configuration to handle all 404 and 500 responses by serving a static page instead of the response's body.
I tried that, but it doesn't solve it for me... I did try an update of JSON.Net from 6.0.2 to 6.0.8, but that didn't anything either (as expected, to be honest...).
Preview not working in Umbraco 7.1.4 - JSON error
Hi all,
We're working on a new Umbraco site with version 7.1.4. Locally, everything works just fine. But on the test environment we can't get the preview function to work. It does a POST to /umbraco/backoffice/UmbracoApi/Content/PostSave followed by a GET of /umbraco/backoffice/UmbracoApi/Entity/GetAncestors.So far, so good. Everything looks fine. Except that all the JSON responses are prefixed with some "garbage", namely )]}',.
Where do I start with finding a solution for this?
Not sure which information is needed to help, but this should be a nice start I guess:
Hi Patrick,
Do you have any configuration in web.config which will redirect/rewrite the response of 500 or 404 errors? I had a similar issue where I added configuration to handle all 404 and 500 responses by serving a static page instead of the response's body.
Hope that helps.
Thanks, Dan.
Hi Dan,
I tried that, but it doesn't solve it for me... I did try an update of JSON.Net from 6.0.2 to 6.0.8, but that didn't anything either (as expected, to be honest...).
Regards,
Patrick
is working on a reply...