nextjs - 💡(How to fix) Fix Server side exception when using server action, together with BotID and proxy [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#86033Fetched 2026-04-08 02:12:56
View on GitHub
Comments
2
Participants
3
Timeline
9
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2closed ×1issue_type_added ×1

Error Message

forward-logs-shared.ts:95 [HMR] connected en-US/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/a-4-a/c.js?i=0&v=3&h=localhost%3A3002:1 Failed to load resource: the server responded with a status of 404 (Not Found) installHook.js:1 Error loading script EventisTrusted: truebubbles: falsecancelBubble: falsecancelable: falsecomposed: falsecurrentTarget: nulldefaultPrevented: falseeventPhase: 0returnValue: truesrcElement: scripttarget: scripttimeStamp: 1641.5999999940395type: "error"[[Prototype]]: Event overrideMethod @ installHook.js:1 stitched-error.ts:14 Uncaught Error: [object Event] at coerceError (stitched-error.ts:14:35) at Object.decorateDevError (stitched-error.ts:25:17) at onUncaughtError (error-boundary-callbacks.ts:103:35) at onCaughtError (error-boundary-callbacks.ts:57:12) at logCaughtError (react-dom-client.development.js:9770:9) at runWithFiberInDEV (react-dom-client.development.js:984:30) at inst.componentDidCatch.update.callback (react-dom-client.development.js:9817:11) at callCallback (react-dom-client.development.js:7733:16) at commitCallbacks (react-dom-client.development.js:7753:11) at runWithFiberInDEV (react-dom-client.development.js:984:30) at commitClassCallbacks (react-dom-client.development.js:13818:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15058:25) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:14986:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11) at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11) at commitLayoutEffectOnFiber (react-dom-client.development.js:15063:11)

Code Example

forward-logs-shared.ts:95 [HMR] connected
en-US/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/a-4-a/c.js?i=0&v=3&h=localhost%3A3002:1  Failed to load resource: the server responded with a status of 404 (Not Found)
installHook.js:1 Error loading script EventisTrusted: truebubbles: falsecancelBubble: falsecancelable: falsecomposed: falsecurrentTarget: nulldefaultPrevented: falseeventPhase: 0returnValue: truesrcElement: scripttarget: scripttimeStamp: 1641.5999999940395type: "error"[[Prototype]]: Event
overrideMethod @ installHook.js:1
stitched-error.ts:14 Uncaught Error: [object Event]
    at coerceError (stitched-error.ts:14:35)
    at Object.decorateDevError (stitched-error.ts:25:17)
    at onUncaughtError (error-boundary-callbacks.ts:103:35)
    at onCaughtError (error-boundary-callbacks.ts:57:12)
    at logCaughtError (react-dom-client.development.js:9770:9)
    at runWithFiberInDEV (react-dom-client.development.js:984:30)
    at inst.componentDidCatch.update.callback (react-dom-client.development.js:9817:11)
    at callCallback (react-dom-client.development.js:7733:16)
    at commitCallbacks (react-dom-client.development.js:7753:11)
    at runWithFiberInDEV (react-dom-client.development.js:984:30)
    at commitClassCallbacks (react-dom-client.development.js:13818:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15058:25)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14986:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15063:11)

---

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.5.0: Tue Apr 22 19:53:27 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6041
  Available memory (MB): 24576
  Available CPU cores: 14
Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 9.15.5
Relevant Packages:
  next: 16.0.1 // Latest available version is detected (16.0.1).
  eslint-config-next: N/A
  react: 19.2.0
  react-dom: 19.2.0
  typescript: N/A
Next.js Config:
  output: N/A
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://github.com/mgm1313/server-action-redirect

To Reproduce

  1. Start the application in development
  2. Click the button to call a server action
  3. Observe an application error

Current vs. Expected behavior

forward-logs-shared.ts:95 [HMR] connected
en-US/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/a-4-a/c.js?i=0&v=3&h=localhost%3A3002:1  Failed to load resource: the server responded with a status of 404 (Not Found)
installHook.js:1 Error loading script EventisTrusted: truebubbles: falsecancelBubble: falsecancelable: falsecomposed: falsecurrentTarget: nulldefaultPrevented: falseeventPhase: 0returnValue: truesrcElement: scripttarget: scripttimeStamp: 1641.5999999940395type: "error"[[Prototype]]: Event
overrideMethod @ installHook.js:1
stitched-error.ts:14 Uncaught Error: [object Event]
    at coerceError (stitched-error.ts:14:35)
    at Object.decorateDevError (stitched-error.ts:25:17)
    at onUncaughtError (error-boundary-callbacks.ts:103:35)
    at onCaughtError (error-boundary-callbacks.ts:57:12)
    at logCaughtError (react-dom-client.development.js:9770:9)
    at runWithFiberInDEV (react-dom-client.development.js:984:30)
    at inst.componentDidCatch.update.callback (react-dom-client.development.js:9817:11)
    at callCallback (react-dom-client.development.js:7733:16)
    at commitCallbacks (react-dom-client.development.js:7753:11)
    at runWithFiberInDEV (react-dom-client.development.js:984:30)
    at commitClassCallbacks (react-dom-client.development.js:13818:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15058:25)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14986:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:14981:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15202:11)
    at recursivelyTraverseLayoutEffects (react-dom-client.development.js:16368:11)
    at commitLayoutEffectOnFiber (react-dom-client.development.js:15063:11)

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.5.0: Tue Apr 22 19:53:27 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6041
  Available memory (MB): 24576
  Available CPU cores: 14
Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 9.15.5
Relevant Packages:
  next: 16.0.1 // Latest available version is detected (16.0.1).
  eslint-config-next: N/A
  react: 19.2.0
  react-dom: 19.2.0
  typescript: N/A
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Internationalization (i18n), Middleware, Server Actions

Which stage(s) are affected? (Select all that apply)

next dev (local), Vercel (Deployed)

Additional context

The error disappears when either disabling instrumentation-client.ts (BotID) or proxy.ts (Proxy).

I observe a 404 in the network tab, so it seems some redirecting is going wrong, but the error messages are not helpful.

extent analysis

TL;DR

  • The issue is likely related to incorrect redirecting or proxying in the server-action-redirect code, and disabling either instrumentation-client.ts or proxy.ts resolves the error.

Guidance

  • Investigate the instrumentation-client.ts and proxy.ts files to identify any potential issues with redirecting or proxying.
  • Check the network tab for any 404 errors to understand which requests are being incorrectly redirected.
  • Verify that the server actions are correctly configured and that the middleware is properly set up.
  • Test the application with different combinations of enabled and disabled files (instrumentation-client.ts and proxy.ts) to narrow down the cause of the issue.

Example

  • No specific code snippet can be provided without more information about the instrumentation-client.ts and proxy.ts files.

Notes

  • The issue seems to be related to the interaction between instrumentation-client.ts and proxy.ts, and further investigation is needed to determine the root cause.
  • The fact that disabling either file resolves the error suggests that there may be a conflict or incorrect configuration between the two.

Recommendation

  • Apply a workaround by disabling either instrumentation-client.ts or proxy.ts until the root cause of the issue can be determined and fixed.
  • This workaround is chosen because it allows the application to function temporarily while the issue is being investigated and resolved.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - 💡(How to fix) Fix Server side exception when using server action, together with BotID and proxy [2 comments, 3 participants]