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

Syncing inngest app in Remix using Single Fetch throws an error #735

Open
aon opened this issue Oct 29, 2024 · 2 comments
Open

Syncing inngest app in Remix using Single Fetch throws an error #735

aon opened this issue Oct 29, 2024 · 2 comments
Labels
Bug Something isn't working

Comments

@aon
Copy link

aon commented Oct 29, 2024

Describe the bug
If using the new Single Fetch function, calling the endpoint where inngest is located with PUT, it throws the following error:

Unhandled error in Remix request
    module: "remix"
    err: {
      "type": "SyntaxError",
      "message": "Failed calling `body` from serve handler when checking body for request signing as method is PUT; Unexpected end of JSON input",
      "stack":
          SyntaxError: Failed calling `body` from serve handler when checking body for request signing as method is PUT; Unexpected end of JSON input
              at JSON.parse (<anonymous>)
              at parseJSONFromBytes (node:internal/deps/undici/undici:5584:19)
              at successSteps (node:internal/deps/undici/undici:5555:27)
              at fullyReadBody (node:internal/deps/undici/undici:1665:9)
              at async specConsumeBody (node:internal/deps/undici/undici:5564:7)
              at async Promise.all (index 2)
              at InngestHandler (/Users/agustin/Developer/personal/afippi/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/src/components/InngestCommHandler.ts:755:41)
              at async Object.callRouteAction (/Users/agustin/Developer/personal/afippi/node_modules/.pnpm/@[email protected][email protected]/node_modules/@remix-run/server-runtime/dist/data.js:36:16)
              at <anonymous> (/Users/agustin/Developer/personal/afippi/node_modules/.pnpm/@[email protected]/node_modules/@remix-run/router/router.ts:4899:19)
              at callLoaderOrAction (/Users/agustin/Developer/personal/afippi/node_modules/.pnpm/@[email protected]/node_modules/@remix-run/router/router.ts:4963:16)
              at async Promise.all (index 0)
              at defaultDataStrategy (/Users/agustin/Developer/personal/afippi/node_modules/.pnpm/@[email protected]/node_modules/@remix-run/router/router.ts:4772:17)
              at callDataStrategyImpl (/Users/agustin/Developer/personal/afippi/node_modules/.pnpm/@[email protected]/node_modules/@remix-run/router/router.ts:4835:17)
              at callDataStrategy (/Users/agustin/Developer/personal/afippi/node_modules/.pnpm/@[email protected]/node_modules/@remix-run/router/router.ts:3992:19)
              at submit (/Users/agustin/Developer/personal/afippi/node_modules/.pnpm/@[email protected]/node_modules/@remix-run/router/router.ts:3755:21)
              at queryImpl (/Users/agustin/Developer/personal/afippi/node_modules/.pnpm/@[email protected]/node_modules/@remix-run/router/router.ts:3684:22)

To Reproduce
Steps to reproduce the behavior:

  1. Start your application
  2. Run curl -X PUT http://localhost:3000/api/inngest

System info

  • OS: macOS
  • Node version: 20
  • Inngest version: 3.23.1
@aon aon added the Bug Something isn't working label Oct 29, 2024
Copy link

linear bot commented Oct 29, 2024

@jpwilliams jpwilliams transferred this issue from inngest/inngest Oct 29, 2024
Copy link

linear bot commented Oct 29, 2024

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

No branches or pull requests

2 participants