Error: The JSON response from the API could not be parsed
onParserError — app.js:1:22240
(fonction anonyme) — app.js:1:17486
asyncFunctionResume
[native code]
promiseReactionJobWithoutPromise
Hm, I’m a bit lost. Since it works locally, I would assume that there’s some server side configuration that’s causing this. What about server side caching? Have you tried to purge/disable that?
If you open Developer Tools in the browser, and inspect the JSON/Panel responses, what is their content? There could be your answer; I remember debugging some very old project of mine, where expected JSON kept failing just to discover that response was actually misformatted because of some PHP errors
Hey @adamkiis, thanks for the suggestion. I find nothing that seams weird.
Here’s the HTML from Inspect Elements.
<section class="k-pages-section k-section k-section-name-projet"><header class="k-section-header"><h2 class="k-headline"> <!----></h2><!----></header><div data-theme="negative" class="k-box"><div data-size="small" class="k-text"><strong> The section "projet" could not be loaded: </strong> The JSON response from the API could not be parsed </div></div></section>
<header class="k-section-header"><h2 class="k-headline"> <!----></h2><!----></header>
<div data-theme="negative" class="k-box"><div data-size="small" class="k-text"><strong> The section "projet" could not be loaded: </strong> The JSON response from the API could not be parsed </div></div>
<div data-size="small" class="k-text"><strong> The section "projet" could not be loaded: </strong> The JSON response from the API could not be parsed </div>
<strong> The section "projet" could not be loaded: </strong>
The JSON response from the API could not be parsed
<div data-size="small" class="k-text"><strong> The section "projet" could not be loaded: </strong> The JSON response from the API could not be parsed </div>
<div data-theme="negative" class="k-box"><div data-size="small" class="k-text"><strong> The section "projet" could not be loaded: </strong> The JSON response from the API could not be parsed </div></div>
<section class="k-pages-section k-section k-section-name-projet"><header class="k-section-header"><h2 class="k-headline"> <!----></h2><!----></header><div data-theme="negative" class="k-box"><div data-size="small" class="k-text"><strong> The section "projet" could not be loaded: </strong> The JSON response from the API could not be parsed </div></div></section>
And the Console log
Error: The JSON response from the API could not be parsed
onParserError — app.js:1:22240
(fonction anonyme) — app.js:1:17486
asyncFunctionResume
[native code]
promiseReactionJobWithoutPromise
onError — app.js:1:22082
(fonction anonyme) — app.js:1:17731
asyncFunctionResume
(fonction anonyme)
promiseReactionJobWithoutPromise
app.js:1:11815
Not Really. That’s your current html and console. If you go to devtools, there should be a requests or network tab. There you see the json requests panel makes upon navigation, and should help you isolate the problematic one.
Solved with the more than gracious help from @adamkiss!
It was simply… accented characters in the filename of two of the projects .
My host apparently doesn’t like them!