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

Uncaught (in promise) DOMException: The requested version (3) is less than the existing version (4). #359

Open
Gobot1234 opened this issue Jun 28, 2024 · 1 comment

Comments

@Gobot1234
Copy link

Gobot1234 commented Jun 28, 2024

This error in console I think is currently causing my instance of the UI to hang.

Full Logs:

index.ts:288 [mobx.array] Attempt to read an array index (0) that is out of bounds (0). Please check length first. Out of bound indices will not be tracked by MobX
t.get_ @ observablearray.ts:352
get @ observablearray.ts:94
(anonymous) @ index.ts:288
c @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
Ue @ action.ts:68
fetchReplHistory @ action.ts:49
u @ wrapInAction.ts:94
n @ modelFlow.ts:77
(anonymous) @ modelFlow.ts:157
i @ modelFlow.ts:68
(anonymous) @ index.tsx:740
Bu @ react-dom.production.min.js:262
t.unstable_runWithPriority @ scheduler.production.min.js:18
Qi @ react-dom.production.min.js:122
Du @ react-dom.production.min.js:261
bu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Qi @ react-dom.production.min.js:122
Zi @ react-dom.production.min.js:123
Gi @ react-dom.production.min.js:122
pu @ react-dom.production.min.js:237
Ia @ react-dom.production.min.js:170
(anonymous) @ index.tsx:144
(anonymous) @ useResize.ts:13
Show 23 more frames
Show less
asyncToGenerator.js:6 Uncaught (in promise) DOMException: The requested version (3) is less than the existing version (4).
qf @ asyncToGenerator.js:6
s @ asyncToGenerator.js:29
Promise.then (async)
qf @ asyncToGenerator.js:13
a @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
Fh @ index.ts:211
Vh @ index.ts:211
(anonymous) @ instance.ts:93
c @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
qf @ asyncToGenerator.js:3
a @ asyncToGenerator.js:25
Promise.then (async)
qf @ asyncToGenerator.js:13
a @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ instance.ts:42
value @ app.ts:60
Ue @ action.ts:68
$$onInit @ action.ts:49
u @ wrapInAction.ts:94
n @ modelDecorator.ts:107
(anonymous) @ store.ts:6
(anonymous) @ index.tsx:11
(anonymous) @ index.tsx:11
Show 19 more frames
Show less
asyncToGenerator.js:6 Uncaught (in promise) DOMException: The requested version (3) is less than the existing version (4).
qf @ asyncToGenerator.js:6
s @ asyncToGenerator.js:29
Promise.then (async)
qf @ asyncToGenerator.js:13
a @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ sessionState.ts:91
value @ sessionState.ts:171
Ue @ action.ts:68
$$onAttachedToRootStore @ action.ts:49
u @ wrapInAction.ts:94
(anonymous) @ attachDetach.ts:48
Ue @ action.ts:68
attachToRootStore @ action.ts:49
l @ setParent.ts:140
Zs @ pendingActions.ts:36
u @ wrapInAction.ts:109
(anonymous) @ index.tsx:110
(anonymous) @ observer.ts:104
(anonymous) @ useObserver.ts:115
it @ derivation.ts:183
t.track @ reaction.ts:137
ri @ useObserver.ts:113
s @ observer.ts:104
sa @ react-dom.production.min.js:157
Wa @ react-dom.production.min.js:180
Ua @ react-dom.production.min.js:178
Fa @ react-dom.production.min.js:177
Gs @ react-dom.production.min.js:274
Nu @ react-dom.production.min.js:250
Su @ react-dom.production.min.js:250
ju @ react-dom.production.min.js:250
bu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Qi @ react-dom.production.min.js:122
Zi @ react-dom.production.min.js:123
Gi @ react-dom.production.min.js:122
wu @ react-dom.production.min.js:244
jt @ reaction.ts:270
St @ reaction.ts:237
kt @ observable.ts:112
ze @ action.ts:141
Ue @ action.ts:73
Ht @ action.ts:85
(anonymous) @ instance.ts:87
c @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
qf @ asyncToGenerator.js:3
a @ asyncToGenerator.js:25
Promise.then (async)
qf @ asyncToGenerator.js:13
a @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ instance.ts:42
value @ app.ts:60
Ue @ action.ts:68
$$onInit @ action.ts:49
u @ wrapInAction.ts:94
n @ modelDecorator.ts:107
(anonymous) @ store.ts:6
(anonymous) @ index.tsx:11
(anonymous) @ index.tsx:11
Show 55 more frames
Show less
wrapInAction.ts:102 Uncaught (in promise) DOMException: The requested version (3) is less than the existing version (4).
u @ wrapInAction.ts:102
r @ modelFlow.ts:126
Promise.then (async)
i @ modelFlow.ts:157
n @ modelFlow.ts:94
(anonymous) @ modelFlow.ts:157
i @ modelFlow.ts:68
(anonymous) @ database.ts:133
Ue @ action.ts:68
When-effect @ action.ts:49
(anonymous) @ when.ts:64
u @ autorun.ts:88
it @ derivation.ts:183
t.track @ reaction.ts:137
(anonymous) @ autorun.ts:59
t.runReaction_ @ reaction.ts:102
Pt @ reaction.ts:260
jt @ reaction.ts:230
(anonymous) @ reaction.ts:270
wu @ react-dom.production.min.js:244
jt @ reaction.ts:270
St @ reaction.ts:237
kt @ observable.ts:112
t.track @ reaction.ts:153
ri @ useObserver.ts:113
s @ observer.ts:104
sa @ react-dom.production.min.js:157
Wa @ react-dom.production.min.js:180
Ua @ react-dom.production.min.js:178
Fa @ react-dom.production.min.js:177
Gs @ react-dom.production.min.js:274
Nu @ react-dom.production.min.js:250
Su @ react-dom.production.min.js:250
ju @ react-dom.production.min.js:250
bu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Qi @ react-dom.production.min.js:122
Zi @ react-dom.production.min.js:123
Gi @ react-dom.production.min.js:122
wu @ react-dom.production.min.js:244
jt @ reaction.ts:270
St @ reaction.ts:237
kt @ observable.ts:112
ze @ action.ts:141
Ue @ action.ts:73
Ht @ action.ts:85
(anonymous) @ instance.ts:87
c @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
qf @ asyncToGenerator.js:3
a @ asyncToGenerator.js:25
Promise.then (async)
qf @ asyncToGenerator.js:13
a @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ instance.ts:42
value @ app.ts:60
Ue @ action.ts:68
$$onInit @ action.ts:49
u @ wrapInAction.ts:94
n @ modelDecorator.ts:107
(anonymous) @ store.ts:6
(anonymous) @ index.tsx:11
(anonymous) @ index.tsx:11
Show 58 more frames
Show less
wrapInAction.ts:102 Uncaught (in promise) DOMException: The requested version (3) is less than the existing version (4).
u @ wrapInAction.ts:102
r @ modelFlow.ts:126
Promise.then (async)
i @ modelFlow.ts:157
n @ modelFlow.ts:94
(anonymous) @ modelFlow.ts:157
i @ modelFlow.ts:68
(anonymous) @ index.tsx:740
Bu @ react-dom.production.min.js:262
t.unstable_runWithPriority @ scheduler.production.min.js:18
Qi @ react-dom.production.min.js:122
Du @ react-dom.production.min.js:261
bu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Qi @ react-dom.production.min.js:122
Zi @ react-dom.production.min.js:123
Gi @ react-dom.production.min.js:122
pu @ react-dom.production.min.js:237
Ia @ react-dom.production.min.js:170
(anonymous) @ index.tsx:144
(anonymous) @ useResize.ts:13
Show 18 more frames
Show less
h1-check.js:107 in detectStoreNew 

As some context I've cleared my db a few times but don't know exactly what caused this to occur

EdgeDB CLI 5.2.0-dev.1166+b5e9df3
Arc/Chromium: Based on Chromium version 126.0.6478.127 (Official Build) (arm64)

@jaclarke
Copy link
Member

jaclarke commented Jul 1, 2024

The ui stores a cache of your databases schema and the query history in the browser using indexeddb, and the most recent update also added the history of ai queries as well, which bumped the version. I'm guessing you had an instance with the latest edgedb version, which created the v4 indexeddb in the browser, then replaced it with an instance with a lower edgedb version which is expecting a lower indexeddb version.

The ui ought to handle this case, which is a bug, but some workarounds that should work for now, is either to update your instance to the latest version, or clear the indexeddb in the browser for the ui. (Press opt+cmd+i to open devtools, and in the application tab, delete the EdgeDBStudio indexeddb, then refresh:
image
)

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

No branches or pull requests

2 participants