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

All: Fixes #8561: Fix OneDrive sync crash on throttle #9143

Merged

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Oct 26, 2023

Summary

This should fix #8561. The code previously attempted to access headers through response?.headers?._headers, which seems to not exist.

shim uses nodeFetch internally on desktop and CLI, which documents a .get method on response.headers. This seems to be equivalent to the browser Headers.get method.

Testing

I have not managed to get throttled by OneDrive. As such, this pull request has only been tested with the included automated test.

I have verified that headers.get works for a sample request on mobile and desktop.

Notes

I'm currently working on extending the existing mobile on-device tests to include a test for shim.fetch. Ideally all tests would run in CI (and pass) with fsDriverNode as well.

@laurent22 laurent22 merged commit 88b44a0 into laurent22:dev Nov 7, 2023
10 checks 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.

OneDrive sync issues
2 participants