Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node Clone - Fix #2903

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Node Clone - Fix #2903

merged 1 commit into from
Jan 17, 2024

Conversation

bcameron1231
Copy link
Collaborator

Removing emit of rawData from queryable and instead moving it into the parser. This would allow us to handle the recommended fix for larger responses in node. Also allows to remove unnecessary clone from BlobParse.

Category

  • Bug fix?

Related Issues

fixes #2890

What's in this Pull Request?

A potential fix for the node response.clone() issue. Using Node's recommendation for handling larger responses https://github.com/node-fetch/node-fetch?tab=readme-ov-file#custom-highwatermark I've removed our existing logic for rawData off from queryable and into our default parser.

This would allow parsers and our rawdata to be handled in parallel and avoiding the current issue of cloning large responses in Node.

@bcameron1231
Copy link
Collaborator Author

Please don't merge. I'm submitting this PR as a potential fix and leaving it here for discussing and seeing if this is a viable option for handling our rawData events.

Removing emit of rawData from queryable and instead moving it into the parser. This would allow us to handle the recommended fix for larger responses in node. Also allows to remove unnecessary clone from BlobParse.

Update caching.ts

Update parsers.ts

Update parsers.ts

Update parsers.ts
@bcameron1231 bcameron1231 added this to the 3.23.0 milestone Jan 17, 2024
@juliemturner juliemturner merged commit 0a18076 into pnp:version-3 Jan 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calls wait endless since 3.21.0 (updated from 3.20.0)
2 participants