Commit a52d7fd
committed
fix: import randomUUID from node:crypto for non-secure contexts
crypto.randomUUID() is only available in secure contexts (HTTPS).
When accessing self-hosted sim over HTTP (e.g., http://192.168.x.x),
the global crypto API doesn't expose randomUUID, causing white screen.
Fix: import { randomUUID } from node:crypto instead of relying on
the global crypto.randomUUID().
Affected files:
- tools/langsmith/utils.ts: runId fallback
- executor/handlers/workflow/workflow-handler.ts: instanceId generation
Fixes #33931 parent 2cf59c8 commit a52d7fd
File tree
2 files changed
+4
-2
lines changed- apps/sim
- executor/handlers/workflow
- tools/langsmith
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments