Sign In Register

How can we help you today?

Start a new topic

Log Event Response can't encode NaN and Infinity


when my response from event contains NaN or Infinity (not strings but number values), platform doesn't send it and doesn't even send or throw an error. This makes it really hard to debug because at first it seems there's just problem with internet connection as it shows timeout on client.

Any behavior would be helpful - throw error or encode value to null (like JSON.stringify()) or to string "Infinity" and "NaN", but any behavior is better than no behavior at all. Preferably encoding, otherwise I would need to double check data I am sending, which is lot of code overhead compared to just passing a cursor to script data.

Thanks, M.R.

2 people like this idea
Login to post a comment