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

Exclude body req for GET/HEAD according to fetch api #1050

Closed
wants to merge 2 commits into from

Conversation

predam
Copy link

@predam predam commented Apr 21, 2024

Closes #1031

Some requests end up sending a body for GET/HEAD requests, which triggers the Request with GET/HEAD method cannot have body, causing some jobs to fail.
In my case, it happens during io.sendEvent.

This solution adheres to the fetch API specifications by removing the body. Although another solution is to identify the source of the problematic request, it cannot guarantee that such an issue will not occur in the future. Additionally, other packages that utilize convertToStandardRequest may require the same fix.

✅ Checklist

  • I have followed every step in the contributing guide
  • The PR title follows the convention.
  • I ran and tested the code works

Testing

[Describe the steps you took to test this change]


Changelog

[Short description of what has changed]


Screenshots

image

💯

Copy link

changeset-bot bot commented Apr 21, 2024

⚠️ No Changeset found

Latest commit: ab0798a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@predam predam closed this Apr 21, 2024
@predam predam deleted the include_body branch April 21, 2024 15:47
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.

bug: Request with GET/HEAD method cannot have body.
1 participant