Skip to content
Closed
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
9 changes: 9 additions & 0 deletions src/libs/actions/IOU/TrackExpense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,15 @@ function requestMoney(requestMoneyInformation: RequestMoneyInformation): {iouRep
...requestMoneyInformation.participantParams,
participant: (({icons, ...rest}) => rest)(requestMoneyInformation.participantParams.participant),
},
// Strip the large policy collections from retryParams to keep the serialized error JSON small.
// These scale with workspace size and are stringified into every failed transaction's error, causing OOM on high-traffic accounts.
policyParams: {
...requestMoneyInformation.policyParams,
policyCategories: undefined,
policyTagList: undefined,
policyRecentlyUsedTags: undefined,
policyRecentlyUsedCategories: undefined,
},
transactionParams: {
...requestMoneyInformation.transactionParams,
receipt: undefined,
Expand Down
Loading