Skip to content

Commit

Permalink
fix(collection): set no limit to the body size on collection update
Browse files Browse the repository at this point in the history
The following change resolves the `ERR_FR_MAX_BODY_LENGTH_EXCEEDED` error, which happens if the source file is 3.6 MB
  • Loading branch information
yndo97 committed Oct 11, 2023
1 parent bba46b0 commit bb1c7f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/PostmanApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ export class PostmanApiService {
const config = {
method: 'put',
url: `${this.baseUrl}/collections/${postmanUid}${workspaceIdParam}`,
maxContentLength: Infinity,
maxBodyLength: Infinity,
headers: {
'Content-Type': 'application/json',
'X-API-Key': this.apiKey
Expand Down

0 comments on commit bb1c7f8

Please sign in to comment.