Skip to content

Exception.js does not handle Circular references #167

@marcoancona

Description

@marcoancona

Sometimes trying to print an exception raises another exception:

Unhandled rejection TypeError: Converting circular structure to JSON at JSON.stringify (<anonymous>) at ServiceResponseException.Exception.toString (/home/node_modules/ews-javascript-api/js/Exceptions/Exception.js:42:21) at StringPrettyPrinter.PrettyPrinter.format (/home/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1768:31) 

Using json3 might be the easiest way to workaround this.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions