Skip to content

Bug: IndexedDB not working in @surrealdb/wasm 3.x #9

@orimay

Description

@orimay

Describe the bug

Anonymous IndexedDB instance fails with

Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
Error with Permissions-Policy header: Unrecognized feature: 'battery'.
Error with Permissions-Policy header: Unrecognized feature: 'document-domain'.
Error with Permissions-Policy header: Unrecognized feature: 'execution-while-not-rendered'.
Error with Permissions-Policy header: Unrecognized feature: 'execution-while-out-of-viewport'.
Error with Permissions-Policy header: Unrecognized feature: 'navigation-override'.
mantine-BrwAzgeW.js:1 Context: Connecting to SurrealDB Cloud instance
polyfills-Bsh9PnBi.js:1 [Violation] 'message' handler took 269ms
mantine-BrwAzgeW.js:1 Context: Attempting to connect to SurrealDB Cloud instance
mantine-BrwAzgeW.js:1 DB: Opening connection to indxdb://indxdb
mantine-BrwAzgeW.js:1 Context: Connected to SurrealDB Cloud instance
mantine-BrwAzgeW.js:1 Cloud: Refreshing cloud access token
mantine-BrwAzgeW.js:1 Cloud: Invalidating active session
mantine-BrwAzgeW.js:1 DB: Connection established
mantine-BrwAzgeW.js:1 DB: Database version 3.1.0
mantine-BrwAzgeW.js:1 SurrealQL: Initializing SurrealQL V3
mantine-BrwAzgeW.js:473 Selecting default namespace and database
frame-modern.ce52c412.js:1 [Intercom] Launcher is disabled in settings or current page does not match display conditions
mantine-BrwAzgeW.js:473  Connection failed InternalError: There was a problem with the key-value store: There was a problem with a transaction: An IndexedDB error occured: idb error
    at qa (surreal-MBoF4PKz.js:8:49807)
    at Qi (surreal-MBoF4PKz.js:8:49865)
    at da.send (surreal-MBoF4PKz.js:8:70594)
    at async da.use (surreal-MBoF4PKz.js:8:51002)
    at async aa.K (surreal-MBoF4PKz.js:8:47871)
    at async fa.use (surreal-MBoF4PKz.js:8:62411)
    at async bn.use (surreal-MBoF4PKz.js:8:31371)
    at async vS (mantine-BrwAzgeW.js:473:9941)
    at async Bi (mantine-BrwAzgeW.js:473:4706)
Bi @ mantine-BrwAzgeW.js:473
await in Bi
(anonymous) @ surrealist-wAMBLH8q.js:1636
ql @ mantime-eAV7tQMn.js:84
os @ mantime-eAV7tQMn.js:84
Sv @ mantime-eAV7tQMn.js:84
Vr @ mantime-eAV7tQMn.js:82
Tk @ mantime-eAV7tQMn.js:84
Jr @ mantime-eAV7tQMn.js:84
nw @ mantime-eAV7tQMn.js:84
C @ mantime-eAV7tQMn.js:69
M @ mantime-eAV7tQMn.js:69
qy.<computed> @ polyfills-Bsh9PnBi.js:1
Xy @ polyfills-Bsh9PnBi.js:1
Zy @ polyfills-Bsh9PnBi.js:1
mantine-BrwAzgeW.js:473  InternalError: There was a problem with the key-value store: There was a problem with a transaction: An IndexedDB error occured: idb error
    at qa (surreal-MBoF4PKz.js:8:49807)
    at Qi (surreal-MBoF4PKz.js:8:49865)
    at da.send (surreal-MBoF4PKz.js:8:70594)
    at async da.use (surreal-MBoF4PKz.js:8:51002)
    at async aa.K (surreal-MBoF4PKz.js:8:47871)
    at async fa.use (surreal-MBoF4PKz.js:8:62411)
    at async bn.use (surreal-MBoF4PKz.js:8:31371)
    at async vS (mantine-BrwAzgeW.js:473:9941)
    at async Bi (mantine-BrwAzgeW.js:473:4706)
Bi @ mantine-BrwAzgeW.js:473
await in Bi
(anonymous) @ surrealist-wAMBLH8q.js:1636
ql @ mantime-eAV7tQMn.js:84
os @ mantime-eAV7tQMn.js:84
Sv @ mantime-eAV7tQMn.js:84
Vr @ mantime-eAV7tQMn.js:82
Tk @ mantime-eAV7tQMn.js:84
Jr @ mantime-eAV7tQMn.js:84
nw @ mantime-eAV7tQMn.js:84
C @ mantime-eAV7tQMn.js:69
M @ mantime-eAV7tQMn.js:69
qy.<computed> @ polyfills-Bsh9PnBi.js:1
Xy @ polyfills-Bsh9PnBi.js:1
Zy @ polyfills-Bsh9PnBi.js:1

Steps to reproduce

Go to https://app.surrealdb.com/ and create an anonymous IndexedDB instance. Open DevTools and the error will be there

Expected behaviour

Should work

Surrealist Environment

Platform: Web
Navigator: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0
Version: 3.7.2
Flags: feature_flags: false, query_view: true, explorer_view: true, graphql_view: false, designer_view: true, auth_view: true, functions_view: true, parameters_view: true, apidocs_view: true, themes: true, syntax_themes: false, newsfeed: true, database_version_check: true, highlight_tool: false, legacy_serve: false, cloud_enabled: true, cloud_endpoints: default, cloud_access: true, cloud_killswitch: true, changelog: auto, website_base: production, support_tickets_endpoint: production, support_tickets: true, sidebar_customization: false, gtm_debug: false, sidekick_ai: true, v3_migration_tooling: true, sandbox_deploy: true

Contact Details

dmitrii.a.baranov@gmail.com

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions