Bun can't call Action method using JavaScript
10 posts across 2 communities since Feb 2024; 90% from GitHub.
“What version of Bun is running? 1.2.5+013fdddc6 What platform is your computer? Microsoft Windows NT 10.0.26100.0 x64 What steps can reproduce the bug? Hi, I would like to report an issue I encountered in Bun while I was running the following code snippet: Regards, Kevin What is…”
“What version of Bun is running? 1.4.6 canary.1+302ba1f9c (also 1.4.5+a7733435c and 1.4.4) What platform is your computer? Microsoft Windows NT 10.0.26300.0 x64 What steps can reproduce the bug? Reproducer: https://gist.github.com/YevheniiKotyrlo/bb5714a277fecec3d8e6da9fe337d1be…”
“[unanswered, 21 views] I have Action method named Import which is inside the Admin Controller. I have JavaScript code that needs to send a request to the Import . I have this code inside a Razor view @{ ViewData["Title"] = "Products page"; } Products Page Choose a file: @section…”
Users are encountering issues where JavaScript code fails to execute action methods within controllers, with the request not reaching the intended destination. This prevents certain functionalities from working as expected.
SOURCES (10)
“What version of Bun is running? 1.4.6 canary.1+302ba1f9c (also 1.4.5+a7733435c and 1.4.4) What platform is your computer? Microsoft Windows NT 10.0.26300.0 x64 What steps can reproduce the bug? Reproducer: https://gist.github.com/YevheniiKotyrlo/bb5714a277fecec3d8e6da9fe337d1be It passes the same source, whose first line is !/usr/bin/env bun , to scanImports() ,…”
“[unanswered, 21 views] I have Action method named Import which is inside the Admin Controller. I have JavaScript code that needs to send a request to the Import . I have this code inside a Razor view @{ ViewData["Title"] = "Products page"; } Products Page Choose a file: @section ImportFile { } here is the JavaScript code that tries to”
“What version of Bun is running? 1.4.0+34cbb9a40 What platform is your computer? Microsoft Windows NT 10.0.26200.0 x64 What steps can reproduce the bug? 1. Run bun test . 2. The test runner starts executing TypeScript tests. 3. Bun unexpectedly terminates with a segmentation fault during execution. What is the expected behavior? The test suite should complete successfully or fail with a standard JavaScript error/assertion message instead of crashing the runtime. What do you see instead? Bun crash”
“What version of Bun is running? What platform is your computer? What steps can reproduce the bug? Aborting Node APIs with AbortSignal.abort() sets error.name === "AbortError" and error.code === "ABORT ERR" on both runtimes. Node’s error.constructor.name is "AbortError" . Bun’s is "Error" . The same constructor mismatch shows up on: child process.spawn(..., { signal: AbortSignal.abort() }) fs.promises.readFile(path, { signal: AbortSignal.abort() }) http.request({ ..., signal: AbortSignal.abort()”
“What version of Bun is running? What platform is your computer? What steps can reproduce the bug? fs.truncateSync on a path that does not exist throws ENOENT on both runtimes ( code and errno match). Node reports syscall: "open" because it opens then ftruncate s. Bun reports syscall: "truncate" . Save as repro.mjs and run node repro.mjs then bun repro.mjs : What is the expected behavior? Node v26.7.0: What do you see instead? Additional information code / errno are already Node compatible. Only”
“What version of Bun is running? What platform is your computer? What steps can reproduce the bug? Node.js documents that require() of an ES module with export default returns a namespace that includes an own enumerable esModule: true , so CJS tooling that does Object.keys / Object.assign / object spread can see the interop marker. On Bun, " esModule" in mod and mod. esModule === true both succeed, but Object.keys(mod) omits " esModule" . That matches a prototype getter / non enumerable marker, n”
“What version of Bun is running? What platform is your computer? What steps can reproduce the bug? fs.openAsBlob() on Bun is implemented as Bun.file(path, options) , so it sniffs MIME from the filename extension. Node.js v26 (the version Bun’s Node compat page tracks) leaves blob.type as an empty string unless options.type is passed. Passing { type: "text/plain" } is also rewritten to text/plain;charset=utf 8 . Save as repro.mjs and run node repro.mjs then bun repro.mjs : What is the expected beh”
“What version of Bun is running? latest What steps can reproduce the bug? Bun did NOT Added " /.bun/bin" to $PATH in " /.bash profile"”
“What version of Bun is running? 1.2.5+013fdddc6 What platform is your computer? Microsoft Windows NT 10.0.26100.0 x64 What steps can reproduce the bug? Hi, I would like to report an issue I encountered in Bun while I was running the following code snippet: Regards, Kevin What is the expected behavior? What do you see instead? 2 Additional information No response”
“What version of Bun is running? 1.0.25+a8ff7be64 What platform is your computer? No response What steps can reproduce the bug? bun i react bun i typescript d image bun remove react image What is the expected behavior? js tokens and loose envify should be removed since react is removed. What do you see instead? image above Additional information No response”
