Start a new topic

Error in Angular Kinvey with Firefox

I am having an issue with angular-kinvey with firefox.



var response = Kinvey.Persistence.Net.request(

request.method,

url,

request.data,

headers,

options

).then(function (response) {

// Parse the response.

try {

response = JSON.parse(response);

}

catch (e) { }





The JSON.parse is failing because in firefox, the response is apparently already an object and doesnt need to be parsed....



Are you aware of that? am i doing something wrong ?

I am using firefox 28 in windows 8....



Cheers

Since `JSON.parse` is in a `try-catch` block, it will indeed work. I guess you have enabled a Firefox setting to break on all exceptions, even if they are handled properly.
Apparently it s working anyway. disregard my comment, i cant find a way to delete it

Cheers
Login or Signup to post a comment