Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Added log of body for when 400 happens #159

Merged
merged 2 commits into from
Jun 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/crowdstrike/FalconAPIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,15 @@ export class FalconAPIClient {
endpoint: requestUrl,
});
}

if (response.status == 400) {
const body = await response.text();
this.logger.info(
{
body,
},
'400 error response',
);
}
throw new IntegrationProviderAPIError({
status: response.status,
statusText: response.statusText,
Expand Down