Internal: Result of job is invalid json (empty)
Hey,
I'm getting the following error while trying to execute a simple Bun script (sending a Slack message):
The code I'm trying to run looks like this:
The code executes seamlessly when I remove
web.chat.PostMessage
. Wrapping the entire script with a try/catch does not seem to work either - nothing gets caught.
Any ideas what might be going on here?2 Replies
Update: when I switched to Deno (and updated the import) the run succeeded.
It looks like it must be something with Bun+Slack then. Are there any additional lower-level logs I could access to debug this further? The ones in the UI contain only the few lines I pasted above.
Update 2: I've just noticed another Bun jobs dying with exactly the same error.
Also, did a few more tests. A new job works fine unless it contains an
await
inside. It almost looks like Windmill workers have trouble processing jobs that return a Bun's Promise<T>
instead of simple synchronous T
.@Heirless Lion could you a share a reproduction with us please
I can reproduce, thanks for the script above, will investigate today
unfortunately it's a bun issue, if you run:
with bun run locally it will hang forever