Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Message window.crypto.randomUUID #12051

Closed
R41z0r opened this issue Dec 4, 2024 · 11 comments · Fixed by #12052
Closed

Error Message window.crypto.randomUUID #12051

R41z0r opened this issue Dec 4, 2024 · 11 comments · Fixed by #12052
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@R41z0r
Copy link

R41z0r commented Dec 4, 2024

Bug Description

I updated to the new latest which appeared as a popup (1.70.2) and now every click I do in workflows produces a popup message with: window.crypto.randomUUID is not a function. I am using the latest docker image.

CleanShot 2024-12-04 at 17 24 59

NodeViewSwitcher-BXWGR8PZ.js:33469 TypeError: window.crypto.randomUUID is not a function
at Object.assignNodeId (index-BT7276bJ.js:205848:31)
at resolveNodeData (NodeViewSwitcher-BXWGR8PZ.js:33643:41)
at addNode (NodeViewSwitcher-BXWGR8PZ.js:33513:22)
at addNodes2 (NodeViewSwitcher-BXWGR8PZ.js:33453:25)
at async onAddNodesAndConnections (NodeViewSwitcher-BXWGR8PZ.js:35077:26)
addNodes2 @ NodeViewSwitcher-BXWGR8PZ.js:33469
await in addNodes2
onAddNodesAndConnections @ NodeViewSwitcher-BXWGR8PZ.js:35077
callWithErrorHandling @ index-BT7276bJ.js:2169
callWithAsyncErrorHandling @ index-BT7276bJ.js:2176
emit @ index-BT7276bJ.js:7027
nodeTypeSelected @ NodeCreation-CrD-YRlw.js:292
callWithErrorHandling @ index-BT7276bJ.js:2169
callWithAsyncErrorHandling @ index-BT7276bJ.js:2176
emit @ index-BT7276bJ.js:7027
selectNodeType @ NodeCreator-_l4IOkdC.js:1700
onSelected @ NodeCreator-_l4IOkdC.js:1735
callWithErrorHandling @ index-BT7276bJ.js:2169
callWithAsyncErrorHandling @ index-BT7276bJ.js:2176
emit @ index-BT7276bJ.js:7027
wrappedEmit @ NodeCreator-_l4IOkdC.js:1100
onClick @ NodeCreator-_l4IOkdC.js:1171
callWithErrorHandling @ index-BT7276bJ.js:2169
callWithAsyncErrorHandling @ index-BT7276bJ.js:2176
invoker @ index-BT7276bJ.js:9277
index-BT7276bJ.js:2227 TypeError: Cannot read properties of undefined (reading 'id')
at onAddNodesAndConnections (NodeViewSwitcher-BXWGR8PZ.js:35115:54)

To Reproduce

Go to workflow
Create a new workflow
Add first step
Choose any available

Popup message appears in the bottom right corner

Expected behavior

Every step works

Operating System

MacOS 15.1.1 Build: 24B91

n8n Version

1.70.2

Node.js Version

Node from Docker Image

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Dec 4, 2024

Hey @R41z0r,

We have created an internal ticket to look into this which we will be tracking as "GHC-560"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Dec 4, 2024
@netroy
Copy link
Member

netroy commented Dec 4, 2024

What browser are you on?

@R41z0r
Copy link
Author

R41z0r commented Dec 4, 2024

What browser are you on?

Brave Version 1.73.91 Chromium: 131.0.6778.85 (Offizieller Build) (arm64)

@netroy
Copy link
Member

netroy commented Dec 4, 2024

Can you please try executing window.crypto.randomUUID() in the browser console to see if that also throws an error, or if that returns a UUID string?
image

@R41z0r
Copy link
Author

R41z0r commented Dec 4, 2024

Can you please try executing window.crypto.randomUUID() in the browser console to see if that also throws an error, or if that returns a UUID string? image

If I do that inside of github.com I correctly get a randomUUID, but inside of n8n there is nothing, only an error message.

n8n:
CleanShot 2024-12-04 at 17 40 27

github:
CleanShot 2024-12-04 at 17 40 46

Even when I start using Safari or any other browser, same error.

@Joffcom
Copy link
Member

Joffcom commented Dec 4, 2024

@R41z0r are you accessing n8n over http or https?

@netroy
Copy link
Member

netroy commented Dec 4, 2024

also, Do you have N8N_SECURE_COOKIE set to false?

@R41z0r
Copy link
Author

R41z0r commented Dec 4, 2024

As it's a local instance I am using http for access.

that's my compose file
CleanShot 2024-12-04 at 17 51 06

@netroy
Copy link
Member

netroy commented Dec 4, 2024

We'll try to get this fixed. In the meanwhile can you please revert to 1.69.2.

BTW, you can delete the N8N_BASIC_AUTH_ env variables. Those were removed over a year and a half ago.

@R41z0r
Copy link
Author

R41z0r commented Dec 4, 2024

We'll try to get this fixed. In the meanwhile can you please revert to 1.69.2.

BTW, you can delete the N8N_BASIC_AUTH_ env variables. Those were removed over a year and a half ago.

Thanks for the quick help - I already reverted to 1.69.2 - and thanks for the information to remove unneeded stuff.

@ashepp
Copy link

ashepp commented Dec 5, 2024

Also seeing this fwiw. Trying to revert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants