Skip to content

feat: replace crypto.randomUUID() with uuidv4#47

Merged
shirshanka merged 1 commit intodatahub-project:mainfrom
wForget:uuid
May 7, 2026
Merged

feat: replace crypto.randomUUID() with uuidv4#47
shirshanka merged 1 commit intodatahub-project:mainfrom
wForget:uuid

Conversation

@wForget
Copy link
Copy Markdown
Contributor

@wForget wForget commented May 7, 2026

After deploying an analytics-agengt server on our internal machine, I encountered the TypeError: crypto.randomUUID is not a function error. crypto.randomUUID() is only available when running over HTTPS or on localhost, so I want to replace crypto.randomUUID() with uuidv4.

closes #46

Copy link
Copy Markdown
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean fix. Replacing crypto.randomUUID() with uuidv4 is the right call for non-HTTPS deployments. v14 is current latest. Thanks @wForget!

@shirshanka shirshanka merged commit c720975 into datahub-project:main May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: TypeError: crypto.randomUUID is not a function

2 participants