You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try Bun.file("./src/halo.json").text() <- convert to text, not just reference.
Do your best to practice defensive programming for bugs.
The above will error if the file doesn't exist etc. so try to write some catches etc to prevent your program from crashing.
try Bun.file("./src/halo.json").text() <- convert to text, not just reference.
Do your best to practice defensive programming for bugs. The above will error if the file doesn't exist etc. so try to write some catches etc to prevent your program from crashing.
Activity
yoroshikun commentedon Sep 11, 2023
https://bun.sh/docs/api/file-io
try
Bun.file("./src/halo.json").text()<- convert to text, not just reference.Do your best to practice defensive programming for bugs.
The above will error if the file doesn't exist etc. so try to write some catches etc to prevent your program from crashing.
xzones2014 commentedon Sep 11, 2023
i did many ways, but still not found the cause
that code above still panic without meaningful error , SIGHUP immediately when reaching the line .text()
Willbill360 commentedon Sep 11, 2023
I'm having the same issue with the same simple code:
Even a Try-Catch doesn't reveal any errors and the process still stops with a SIGHUP error. The
catchis not even being executed.Also, it doesn't appear to be related to Elysia, as my project doesn't use it.
Output:
error: script "start" exited with code 1 (SIGHUP)Speaker4TheUndead commentedon Sep 14, 2023
Experiencing same issue on Ubuntu. I'm also using Elysia Html.
iamcsharper commentedon Oct 5, 2023
same thing on WSL 2
iamcsharper commentedon Nov 7, 2023
@Jarred-Sumner sorry to bother you, but will this issue be addressed?
hex2f commentedon Jan 6, 2024
Hmm, this is still happening for me in versions 1.0.18 and forwards. Works fine in 1.0.17