Skip to content

fix: missing methodName or param returns 400 and stops in @turnkey/sdk-server proxy handlers - #1592

Open
ethankonk wants to merge 1 commit into
mainfrom
ethan/fix-bug-in-express-proxy-handler
Open

ethankonk wants to merge 1 commit into
mainfrom
ethan/fix-bug-in-express-proxy-handler

Conversation

@ethankonk

Copy link
Copy Markdown
Contributor

Summary & Motivation

  • Fixes a bug in expressProxyHandler and nextProxyHandlerwhere a request missingmethodNameorparams` returned 400 and then kept going, writing the response a second time. The handlers now return after that 400.

How I Tested These Changes

Did you add a changeset?

If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run pnpm changeset. pnpm changeset will generate a file where you should write a human friendly message about the changes. Note how this (example) includes the package name (should be auto added by the command) along with the type of semver change (major.minor.patch) (which you should set).

These changes will be used at release time to determine what packages to publish and how to bump their version. For more context see this comment.

@codesandbox-ci

codesandbox-ci Bot commented Oct 9, 2026

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 38e91b7:

Sandbox Source
@turnkey/example-react-components Configuration

];

type ProxyHttpResponse = {
headersSent?: boolean;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why is this here? I think we can remove it

This branch has not been deployed

No deployments
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.

2 participants