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

Do not reuse the response body when parsing errors #745

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jpwilliams
Copy link
Member

@jpwilliams jpwilliams commented Nov 13, 2024

Summary

Fixes some unlucky reuse of the Response body when attempting to parse errors from the inngest.send() response.

Checklist

  • Added a docs PR that references this PR N/A Bug fix
  • Added unit/integration tests
  • Added changesets if applicable

Related

@jpwilliams jpwilliams added the Bug Something isn't working label Nov 13, 2024
@jpwilliams jpwilliams self-assigned this Nov 13, 2024
Copy link

changeset-bot bot commented Nov 13, 2024

🦋 Changeset detected

Latest commit: 2957526

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
inngest Patch

Not sure what this means? Click here to learn what changesets are.

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

@inngest-release-bot inngest-release-bot added the 📦 inngest Affects the `inngest` package label Nov 13, 2024
@jpwilliams jpwilliams marked this pull request as ready for review November 25, 2024 14:52
Copy link
Contributor

@tonyhb tonyhb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working 📦 inngest Affects the `inngest` package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] TypeError: Body has already been used
4 participants