|
|
@@ -43,8 +43,13 @@ export class WebClientNode implements IWebClient {
|
|
|
if (options.body) {
|
|
|
rpOptions.body = options.body;
|
|
|
}
|
|
|
- // console.log('rpOptions', rpOptions);
|
|
|
- const result = await request(rpOptions);
|
|
|
- return JSON.parse(result);
|
|
|
+ console.log('rpOptions', options, rpOptions);
|
|
|
+ try {
|
|
|
+ const result = await request(rpOptions);
|
|
|
+ return JSON.parse(result);
|
|
|
+ } catch (e) {
|
|
|
+ console.error('fatal error during request', options, rpOptions, e);
|
|
|
+ throw e;
|
|
|
+ }
|
|
|
}
|
|
|
}
|