software-mansion / react-native-ide

https://ide.swmansion.com
Other
705 stars 21 forks source link

[error] Unhandled promise rejection Cookie has domain set to a public suffix #404

Open timonjagi opened 5 days ago

timonjagi commented 5 days ago

I'm encountering an unhandled promise rejection with the error message "Cookie has domain set to a public suffix".

Environment:

React Native IDE: v0.0.15 React Native: 0.74.1 Expo: ^51.0.8 Expo Router: ~3.5.14

Logs:

2024-06-23 16:02:33.031 [info] Metro Android Bundled 259ms node_modules/expo-router/entry.js (1 module)
2024-06-23 16:02:34.199 [info] Devtools client connected
2024-06-23 16:02:36.186 [info] Metro  LOG  Running "main" with {"rootTag":31} http://localhost:49495/node_modules/expo-router/entry.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app 17374 22
2024-06-23 16:02:36.361 [info] Metro  LOG  setting up translations http://localhost:49495/node_modules/expo-router/entry.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app 177709 15
2024-06-23 16:02:36.429 [info] Metro  LOG  local locale: en-US  http://localhost:49495/node_modules/expo-router/entry.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app 177710 15
2024-06-23 16:02:36.462 [info] Metro  LOG  default locale: en-US  http://localhost:49495/node_modules/expo-router/entry.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app 177711 15
2024-06-23 16:02:36.503 [info] Metro  LOG  write to storage locale: en-US http://localhost:49495/node_modules/expo-router/entry.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app 177732 17
2024-06-23 16:02:36.511 [info] App ready
2024-06-23 16:02:36.537 [info] Metro  LOG  getting locale from storage and writing it to memory en-US http://localhost:49495/node_modules/expo-router/entry.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app 177723 17
2024-06-23 16:03:08.415 [error] Unhandled promise rejection Cookie has domain set to a public suffix

package.json

jakub-gonet commented 5 days ago

Does your app work without the React Native IDE? Can you check if there's additional info in the VSC console? (help -> toggle developer tools)

timonjagi commented 4 days ago

Yes, build is succeeding when running expo run:android normally.

The same error is being logged on the VSC (Cursor) console:

Error: Cookie has domain set to a public suffix
    at j.setCookie (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-always-local/dist/main.js:2:21655)
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-always-local/dist/main.js:2:409435
    at new Promise (<anonymous>)
    at j.setCookie (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-always-local/dist/main.js:2:409334)
    at g.createCookie (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-always-local/dist/main.js:2:437980)
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-always-local/dist/main.js:2:438497
    at async vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-always-local/dist/main.js:2:438365
    at async vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-always-local/dist/main.js:2:438239
    at async Object.unary (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-always-local/dist/main.js:2:1272010)
    at async S.$callAiConnectTransportProviderUnary (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:6554)