We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84b1875 commit c1b7603Copy full SHA for c1b7603
generator/cybersource-javascript-template/ApiClient.mustache
@@ -393,7 +393,9 @@
393
394
try {
395
// 404 is caused by missing resource / resource not found
396
- tester.response.text = JSON.stringify(error.response.data);
+ if (error.response.config.responseType != 'stream'){
397
+ tester.response.text = JSON.stringify(error.response.data);
398
+ } else { throw "Exception during streaming"; }
399
} catch(err) {
400
// 404 is caused by unexpected end of stream or stream not found
401
tester.response.text = error.message;
0 commit comments