debitoor / safe-json-stringify

A wrapper for JSON.stringify that handles circular references and prevent defined getters from throwing errors.
https://www.npmjs.com/package/safe-json-stringify
56 stars 16 forks source link

Deal with "Object doesn't support property or method 'error'" #8

Open binarykitchen opened 6 years ago

binarykitchen commented 6 years ago

Sometimes your function still throws me this error

Object doesn't support property or method 'error'

No idea what arguments have been used (form my production site with lots of visits) but since you claim safe-json-stringify is safe, would be good to cover this case as well :)

binarykitchen commented 6 years ago

Btw that error also has this error number: -2146827850

Plus user agent is

{
 "userAgent": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0;  Trident/5.0)"
}

Hope this helps narrowing down ...

ebdrup commented 6 years ago

It’s good that you’re enjoying the free software. I would suggest you investigate exact steps to reproduce. And if you want to be really awsome you can du a pull request with a test and a fix for the problem.

Cheers, Allan

Den 17. apr. 2018 kl. 02.19 skrev Michael Heuberger notifications@github.com:

Btw that error also has this error number: -2146827850

Plus user agent is

{ "userAgent": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0; Trident/5.0)" } Hope this helps narrowing down ...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

binarykitchen commented 6 years ago

sure allan, nice wordings ;)

just sharing knowledge here. will keep this tread up to date when i know more.

ronkorving commented 4 years ago

@binarykitchen Can you provide a stack trace? That is, the full error object, not just the message-part.

binarykitchen commented 4 years ago

well i dont remember that. it's been two years ago ... next time i ll try to provide more info.

ronkorving commented 4 years ago

Yeah, I understand. Sorry for even asking :D lol