blpapi-node icon indicating copy to clipboard operation
blpapi-node copied to clipboard

Silent crash of Node

Open matthieu-vincke opened this issue 10 years ago • 2 comments

I noticed a silent crash (Exception type seems to not be catched by the invoke try/catch in blpapi.js) Fix simply consists in changing the throw Exception to throw UnknownErrorException

matthieu-vincke avatar Apr 23 '15 10:04 matthieu-vincke

We shouldn't be modifying the vendor dependencies. Instead, we should modify blpapijs.cpp to handle the thrown exception. Can you provide an example that reproduces the issue?

ericvw avatar Apr 23 '15 15:04 ericvw

Hi Eric,

I noticed the problem with a request IRDCTK3 such as:

service: '//blp/irdctk3', type: 'GetCurveInterpValues', req: { spotCurve: { curveID: 'CCTK5538d36b1e680009' }, calcType: { calcWhat: 'DF.MID', calcSide: 'DISCOUNTCURVE' } , interpPoints: [ { dayCount: 'DEFAULT', frequency: 'DEFAULT', term: { Length: 0, Type: 'MONTHS' } } ] }

CalcType should be an array but I gave an object and I had this "silent" crash. I will try to see how to modify blpapijs.cpp instead of the .h

matthieu-vincke avatar Apr 23 '15 16:04 matthieu-vincke