-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace undici's multipart/form-data parser with custom implementatio…
…n in tests (#872) Undici's multipart/form-data parser cannot handle Axios' multipart/form-data requests correctly. For example, see this failure: https://github.com/line/line-bot-sdk-nodejs/actions/runs/9362094041/job/25770215937. The root cause of this issue is unclear, but it exists in the legacy client code, which we plan to deprecate by the end of this year. As a temporary workaround, we are replacing undici's parser with our own implementation to ensure the tests pass. Changes: - Added a custom multipart/form-data parser function in `test/client.spec.ts`. - Updated tests to use the custom parser instead of undici's.
- Loading branch information
Showing
14 changed files
with
877 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.