jairajs89/zerver

Intermittent "failed to parse"

Closed this issue · 1 comments

messages image 727724591

data being sent back is result from a postgres query, sometimes the first request works sometimes they fail then like the fifth one will work and all subsequent one's fail.

Here are steps i have taken to debug:

  • console logged the (raw json status) in client/require.js
  • compared the values of success and failed to parse
  • in failures obviously json is not present so i have taken the raw response from a failure and put it as the return value of MyAPI call, it returns successfully so i'm certain it is not the data being returned that causes the failure

Is there a more granular debug i can use to figure out why this is happening to help oyu track this down?

Found out the problem after much deeper testing a quick call to encodeURI(userData.kikdata) worked