stocky-ambulance-31034
08/27/2025, 4:12 AMJob: {
id: "AJ_HAW2xpUdD7sW",
dispatchId: "",
type: 0,
namespace: "",
metadata: "",
agentName: "",
room: {
sid: "RM_uUrYYEyRT4CD",
name: "omni-call-_+16506913000_9x2TUjKmVczh",
emptyTimeout: 300,
departureTimeout: 20,
maxParticipants: 0,refined-appointment-81829
08/27/2025, 5:15 AMagent-js? If so which branch are you using? If you are using off of main (0.x) I do not recommend you use that developer preview version.
If you are using off of the dev-1.0 branch do you get the same issue if you run this example?
https://github.com/livekit/agents-js/blob/dev-1.0/examples/src/basic_agent.ts
Otherwise I don't really understand your question and what you mean by the following although it is very likely not to work if you are using the 0.x version in main
> can not see any of the Custom X-Headers in the data eitherrefined-appointment-81829
08/27/2025, 5:23 AMrefined-appointment-81829
08/27/2025, 8:10 PMstocky-ambulance-31034
08/27/2025, 8:12 PMrefined-appointment-81829
08/27/2025, 8:13 PMstocky-ambulance-31034
08/27/2025, 8:17 PMlavonwoods@Lavons-MacBook-Pro livekit-agents % LK_RUNNER=1 bun run src/agents/basic_agent.ts start
^C============================================================
============================================================
============================================================
Bun v1.2.3 (8c4d3ff8) macOS Silicon
Bun v1.2.3 (8c4d3ff8) macOS Silicon
Bun v1.2.3 (8c4d3ff8) macOS Silicon
macOS vmacOS v14.114.1
Args: Args: "macOS v/opt/homebrew/Cellar/bun/1.2.3/bin/bun" "/opt/homebrew/Cellar/bun/1.2.3/bin/bun""/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/agents/dist/ipc/job_proc_lazy_main.js 14.1"
Args: ""/opt/homebrew/Cellar/bun/1.2.3/bin/bun "/Users/lavonwoods/HybridMindsetL/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/agents/dist/ipc/job_proc_lazy_main.js"" ""/Users/lavonwoods/HybridMindsetL/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/agents/dist/ipc/job_proc_lazy_main.js""..."
"Features: /Users/lavonwoods/HybridMindsetLBun.stderr..."
Features: Bun.stderr...
Features: Bun.stderr(2) Bun.stdout(2(2) Bun.stdout) (dotenv( 22) ) dotenvBun.stdout (jsc2jsc) dotenvtranspiler_cache ( jsc13transpiler_cache) (tsconfig transpiler_cache(1313) () tsconfig8tsconfig() tsconfig_paths(2) napi_module_register process_dlopen((8) 8tsconfig_paths) (tsconfig_paths32() ) 2
Builtins: "napi_module_registerbun:main " process_dlopen"(detect-libc3) " ) napi_module_register"
node:assertBuiltins: "bun:mainprocess_dlopen" ("3detect-libc) "
"Builtins: "node:assertbun:main" " ""node:async_hooksdetect-libc" " " """node:buffernode:async_hooksnode:assert" "" node:async_hooks"node:child_process" "node:crypto" "node:events" " ""node:fsnode:buffer" " ""node:fs/promisesnode:child_process" "node:crypto" "" node:events" ""node:buffer" " node:fs"" ""node:child_process" "node:crypto" node:http"node:events" " ""node:module" node:fs/promises"node:fsnode:os" " "" node:http"" node:fs/promises""" node:module"" node:http"" node:pathnode:os" " ""node:processnode:path" ""node:streamnode:module" "node:os" "" node:path"" node:process"" node:stream/promises"" node:stream"" node:stream/web"node:stream/promises" " " "node:stream/web" "node:string_decoder" ""node:url" node:string_decoder"" node:util"" node:url"" node:util/types"" node:util"" node:worker_threads"" node:util/types"" ws"" node:worker_threads
" "ws"
"node:process" "node:stream" "node:stream/promises" "node:stream/web" "node:string_decoder" "node:url" "node:utilElapsed: " 1259"ms | User: node:util/types" Elapsed: "1401node:worker_threadsms | User: " 259"ms | Sys: 258ws54ms
ms | Sys: RSS: 54ms
"
RSS: Elapsed: 1542ms | User: 258ms | Sys: 53ms
RSS: 0.19GB | Peak: 0.19GB | Commit: 0.64GB | Faults: 56
panic(main thread): 0.19GB0.19GB | Peak: | Peak: 0.19GBA C++ exception occurred0.20GB
| Commit: 0.75GB | Commit: | Faults: 0.87GB59 | Faults:
73
panicpanic(main thread): (main thread): A C++ exception occurred
A C++ exception occurredoh no
: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
oh no: oh noBun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
https://bun.report/1.2.3/Ma18c4d3ffuMqwgQux6Iumgs2Cu/12hB_____uhjtF2nlkdA0eNpzVHDW1lZIrUhOLSjJzM9TyE9OLi0qSk0BAF13CGE
https://bun.report/1.2.3/Ma18c4d3ffuMqwgQux6Iumgs2Cu/12hB_____uhjtF2nlkdA0eNpzVHDW1lZIrUhOLSjJzM9TyE9OLi0qSk0BAF13CGE
https://bun.report/1.2.3/Ma18c4d3ffuMqwgQux6Iumgs2Cu/12hB_____uhjtF2nlkdA0eNpzVHDW1lZIrUhOLSjJzM9TyE9OLi0qSk0BAF13CGE
============================================================
Bun v1.2.3 (8c4d3ff8) macOS Silicon
macOS v14.1
Args: "/opt/homebrew/Cellar/bun/1.2.3/bin/bun" "/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/agents/dist/ipc/inference_proc_lazy_main.js" "{\"lk_end_of_utterance_en\":"...
Features: Bun.stderr(2) Bun.stdout(2) dotenv jsc transpiler_cache(13) tsconfig(8) tsconfig_paths(2) napi_module_register process_dlopen(3)
Builtins: "bun:main" "detect-libc" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:module" "node:os" "node:path" "node:process" "node:stream" "node:stream/promises" "node:stream/web" "node:string_decoder" "node:url" "node:util" "node:util/types" "node:worker_threads" "ws"
Elapsed: 2776ms | User: 793ms | Sys: 228ms
RSS: 1.46GB | Peak: 1.47GB | Commit: 0.85GB | Faults: 627
panic(main thread): A C++ exception occurred
oh no: Bun has crashed. This indicates a bug in Bun, not your code.refined-appointment-81829
08/27/2025, 8:18 PMrefined-appointment-81829
08/27/2025, 8:20 PMaloof-notebook-98064
08/27/2025, 8:20 PMstocky-ambulance-31034
08/27/2025, 8:21 PM1ST REQUEST ===>> Job Requested... Job: {
id: "AJ_eRPEWSn6UoaG",
dispatchId: "",
type: 0,
namespace: "",
metadata: "",
agentName: "",
room: {
sid: "RM_jHPPnc2kPSgZ",
name: "omni-call-_+16506913000_kz9DGk8FGn7C",
emptyTimeout: 300,
departureTimeout: 20,
maxParticipants: 0,
creationTime: 1756325955n,
creationTimeMs: 1756325955681n,
turnPassword: "",
enabledCodecs: [
{
mime: "video/H264",
fmtpLine: "",
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
}, {
mime: "video/VP8",
fmtpLine: "",
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
}, {
mime: "video/VP9",
fmtpLine: "",
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
}, {
mime: "video/AV1",
fmtpLine: "",
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
}, {
mime: "audio/red",
fmtpLine: "",
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
}, {
mime: "audio/opus",
fmtpLine: "",
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
}
],
metadata: "",
numParticipants: 0,
numPublishers: 0,
activeRecording: false,
version: {
unixMicro: 1756325955717756n,
ticks: 0,
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
},
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
},
state: {
status: 1,
error: "",
startedAt: 1756325955868362794n,
endedAt: 0n,
updatedAt: 1756325955868362794n,
participantIdentity: "",
workerId: "AW_VnGj7TSyJCqr",
[Symbol(@bufbuild/protobuf/unknown-fields)]: [
{
no: 8,
wireType: 2,
data: <Buffer 0e 41 5f 37 76 5a 4b 6a 61 45 67 35 7a 75 6d>,
}
],
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
},
equals: [Function: equals],
clone: [Function: clone],
fromBinary: [Function: fromBinary],
fromJson: [Function: fromJson],
fromJsonString: [Function: fromJsonString],
toBinary: [Function: toBinary],
toJson: [Function: toJson],
toJsonString: [Function: toJsonString],
toJSON: [Function: toJSON],
getType: [Function: getType],
} Room Metadata:
Entry MAIN Worker called ... ===> Job Metadata: Job Participant Attributes: undefined
Entry Sales Agent called ===>
Sales rep agent ( unknown ) starting session
Connecting to Livekit Server...
XXXXXXXXXXXX--------------------------------//////
AgentWorker Child Process spawned... [ "/opt/homebrew/Cellar/bun/1.2.3/bin/bun", "/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/agents/dist/ipc/job_proc_lazy_main.js",
"/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/src/agents/AgentWorker.ts"
]
Prewarming agent... ===> 40641
Loading configuration for agent type: sales_rep
Database loading not yet implemented... NO AGENT TYPE!
Creating Concrete Agent...
--------------------------------==============>>
SalesRepAgent initialized
SalesRepAgent configured for: unknown
Prewarming SalesRepAgent
SalesRepAgent prewarmed
54 | }
55 | this.trackId = track.sid;
56 | };
57 | onLocalTrackPublished = (track) => {
58 | var _a;
59 | if (!this.participantIdentity || this.participantIdentity !== ((_a = this.room.localParticipant) == null ? void 0 : _a.identity) || track.source !== TrackSource.SOURCE_MICROPHONE) {
^
TypeError: undefined is not an object (evaluating 'track.source')
at onLocalTrackPublished (/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/agents/dist/voice/room_io/_output.js:59:137)
at emit (node:events:90:22)
at <anonymous> (/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/rtc-node/dist/room.js:84:14)
at <anonymous> (/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/rtc-node/dist/room.js:51:12)
at emit (node:events:87:22)
at <anonymous> (/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/rtc-node/dist/ffi_client.js:30:14)
Bun v1.2.3 (macOS arm64)
============================================================
Bun v1.2.3 (8c4d3ff8) macOS Silicon
macOS v14.1
Args: "/opt/homebrew/Cellar/bun/1.2.3/bin/bun" "/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/agents/dist/ipc/job_proc_lazy_main.js" "/Users/lavonwoods/HybridMindsetL"...
Features: Bun.stderr(2) Bun.stdout(2) WebSocket dotenv jsc transpiler_cache(11) tsconfig(7) tsconfig_paths(2) napi_module_register process_dlopen(3)
Builtins: "bun:main" "detect-libc" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:module" "node:os" "node:path" "node:process" "node:stream" "node:stream/web" "node:string_decoder" "node:url" "node:util" "node:util/types" "node:worker_threads" "ws"
Elapsed: 15493ms | User: 490ms | Sys: 131ms
RSS: 0.21GB | Peak: 0.21GB | Commit: 0.55GB | Faults: 648
panic(main thread): A C++ exception occurred
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
https://bun.report/1.2.3/Ma18c4d3ffuM6wgQux6Iumgs2Cu/12hB_____uhjtFu39nFA0eNpzVHDW1lZIrUhOLSjJzM9TyE9OLi0qSk0BAF13CGE
{"level":40,"time":1756325958839,"pid":40631,"hostname":"Lavons-MacBook-Pro.local","err":{"type":"Error","message":"Subprocess.send() cannot be used after the process has exited.","stack":"Error: Subprocess.send() cannot be used after the process has exited.\n at send (unknown)\n at #send (node:child_process:662:28)\n at <anonymous> (/Users/lavonwoods/HybridMindsetLocal/CRMApp/backend/livekit-agents/node_modules/@livekit/agents/dist/ipc/supervised_proc.js:46:17)"},"msg":"job process exited unexpectedly; this likely means the error above caused a crash"}refined-appointment-81829
08/27/2025, 8:22 PMstocky-ambulance-31034
08/27/2025, 8:23 PMaloof-notebook-98064
08/27/2025, 9:26 PM