Unexpected end of input

Hi, i having a rare situation, i’m fetching information from .net service.

the

fetch(".....").then(function(result)
{
    //it's receiving information
    debug_log(JSON.stringify(result)); 

})

the log return the json (from the cell phone)

{"_bodyInit":"{\"Bimestre\":\"Septiembre-Octubre\",\"Faltas\":\"1\",\"Turno\":\"MATUTINO\",\"Calificacion\":[{\"Asignatura\":\"ESPAÑOL\",\"CalificacionBim1\":\"7.20\",\"CalificacionBim2\":\"8.30\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"MATEMATICAS\",\"CalificacionBim1\":\"9.20\",\"CalificacionBim2\":\"8.70\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"EXPLORACION DE LA NATURALEZA Y LA SOCIEDAD\",\"CalificacionBim1\":\"8.40\",\"CalificacionBim2\":\"9.40\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"EDUCACION ARTISTICA\",\"CalificacionBim1\":\"10.00\",\"CalificacionBim2\":\"10.00\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"EDUCACION FISICA\",\"CalificacionBim1\":\"10.00\",\"CalificacionBim2\":\"10.00\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"FORMACION CIVICA Y ETICA\",\"CalificacionBim1\":\"9.20\",\"CalificacionBim2\":\"9.10\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"Faltas\",\"CalificacionBim1\":\"1\",\"CalificacionBim2\":\"1\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null}]","_bodyText":"{\"Bimestre\":\"Septiembre-Octubre\",\"Faltas\":\"1\",\"Turno\":\"MATUTINO\",\"Calificacion\":[{\"Asignatura\":\"ESPAÑOL\",\"CalificacionBim1\":\"7.20\",\"CalificacionBim2\":\"8.30\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"MATEMATICAS\",\"CalificacionBim1\":\"9.20\",\"CalificacionBim2\":\"8.70\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"EXPLORACION DE LA NATURALEZA Y LA SOCIEDAD\",\"CalificacionBim1\":\"8.40\",\"CalificacionBim2\":\"9.40\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"EDUCACION ARTISTICA\",\"CalificacionBim1\":\"10.00\",\"CalificacionBim2\":\"10.00\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"EDUCACION FISICA\",\"CalificacionBim1\":\"10.00\",\"CalificacionBim2\":\"10.00\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"FORMACION CIVICA Y ETICA\",\"CalificacionBim1\":\"9.20\",\"CalificacionBim2\":\"9.10\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null},{\"Asignatura\":\"Faltas\",\"CalificacionBim1\":\"1\",\"CalificacionBim2\":\"1\",\"CalificacionBim3\":null,\"CalificacionBim4\":null,\"CalificacionBim5\":null}]","type":"default","status":200,"ok":true,"statusText":"OK","headers":{"map":{"cache-control":["private"],"x-aspnet-version":["4.0.30319"],"x-android-sent-millis":["1455727606886"],"content-type":["application/json; charset=utf-8"],"x-powered-by":["ASP.NET"],"date":["Wed, 17 Feb 2016 16:52:14 GMT"],"server":["Microsoft-IIS/7.5"],"content-length":["1200"],"null":["HTTP/1.1 200 OK"],"x-android-response-source":["NETWORK 200"],"x-android-received-millis":["1455727606967"]}},"url":""}

and in the second part to get the info:

result.json()then(function(data)
{
   for (i=0;i<data.Calificacion.length;i++)
   {
   }

}).catch(function(error) {debug_log(error.message) } );

so the catch return the message “Unexpected end of input” BUT only on my cel phone, it works fine in preview on windows 10. the version on my phone is not a preview.

i have a other service and it’s working ok, the difference of both it’s the array in an object (this case) the case that’s working it’s an array.

have you a similar situation ?

p.s. i did not see the search box on community, i think it should be there to search before post.

thanks.

ok, i saw the next post and i resolved it, just replace the special characters.

https://www.fusetools.com/community/forums/howto_discussions/non-ascii_characters_breaking_fetch_request_on_and

thanks.!!!