Skip to content

Commit a2ac4a3

Browse files
committed
fix: pass body to error deserializer
1 parent 033f953 commit a2ac4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/node/client-rds-data-node/protocol/AwsRestJson1_1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export async function executeStatementAwsRestJson1_1Deserialize(
9595
async function executeStatementAwsRestJson1_1DeserializeError(
9696
output: HttpResponse
9797
): Promise<ExecuteStatementResponse> {
98-
let data = await parseBody(output);
98+
let data = await parseBody(output.body);
9999
if (output.statusCode === 400 && data.dbConnectionId !== undefined) {
100100
return Promise.reject({
101101
__type: "com.amazon.rdsdataservice#StatementTimeoutException",

0 commit comments

Comments
 (0)