File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 22
33# Changelog
44
5- ## [ 1.3.3] - 2025-02-4
6-
7- ### Changed
8-
9- - Fix SDK error handler so that it throws a JSON string instead of an unparseable string object
10-
115## [ 1.3.2] - 2025-02-3
126
137### Changed
Original file line number Diff line number Diff line change 11{
22 "name" : " @pipedream/sdk" ,
33 "type" : " module" ,
4- "version" : " 1.3.3 " ,
4+ "version" : " 1.3.2 " ,
55 "description" : " Pipedream SDK" ,
66 "main" : " ./dist/server.js" ,
77 "module" : " ./dist/server.js" ,
Original file line number Diff line number Diff line change @@ -960,10 +960,7 @@ export abstract class BaseClient {
960960 if ( ! response . ok ) {
961961 const errorBody = await response . text ( ) ;
962962 throw new Error (
963- JSON . stringify ( {
964- message : `HTTP error! status: ${ response . status } ` ,
965- data : errorBody ,
966- } ) ,
963+ `HTTP error! status: ${ response . status } , body: ${ errorBody } ` ,
967964 ) ;
968965 }
969966
You can’t perform that action at this time.
0 commit comments