mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-25 06:02:14 -06:00
[GH-ISSUE #168] DEBUG THIS: getNodeInfo error #84
Labels
No labels
IndexedDB
browser
bug
dependencies
documentation
duplicate
enhancement
feature request
indexes
indexes
invalid
pull-request
query
question
transaction logging
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase#84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @donl on GitHub (Oct 26, 2022).
Original GitHub issue: https://github.com/appy-one/acebase/issues/168
I just ran into this error. I'll see if I can get you something reproducible. This is from an
acebase-serverthat was having dummy data (2k small objects) added from a remote client.@appy-one commented on GitHub (Oct 26, 2022):
If I follow the stack trace it looks like you are adding those objects to the root node of the db, is that right?
This line sets the
tree.id:74a2c54f8a/src/storage/binary/index.js (L2568)If
path === '', so willtree.idbe and fail the assertion with given error.Can you try changing the line above to
tree.id = 'path:' + this.address.path;and let me know if that fixes it?@donl commented on GitHub (Oct 26, 2022):
Correct, these objects were being added to the root node.
I patched the code on the
server. I replaced myserver's /node_modules/acebase with your repo, made the change and builtacebase. The error still occurred. Do I need to try and update myacebase-clientapp as well?@donl commented on GitHub (Oct 26, 2022):
Starting with a fresh db, this is what I'm seeing upon database creation...
@donl commented on GitHub (Oct 26, 2022):
I must be missing a step. It looks like after running
npm run buildin theacebasedirectory, my modification toacebase/src/storage/binary/index.jsis being reverted.@donl commented on GitHub (Oct 27, 2022):
When I only edit the .js file (without additional building) I am seeing these types of messages when attempting to log in and being stuck waiting for the server to respond.
storage.getNode "/__auth__/accounts/admin") is taking a long time to complete@appy-one commented on GitHub (Oct 27, 2022):
Yes, that's why I asked to change the .js file, that would have been the only needed change. If you'd change the .ts file you would have needed to rebuild, I wanted to save you the hassle ;-)
Are you logging in while your bulk adds are being processed?
@donl commented on GitHub (Oct 28, 2022):
The login was on a fresh server / database file. I wasn't able to proceed any further. I'll try another fresh server setup with no authentication.
The npm installed
acebasepackage didn't have the.jsfiles you referenced. Going off your git repo, I was more out of my element -- but a good lesson for me none the less. :)@appy-one commented on GitHub (Oct 28, 2022):
Did you update
acebase-serverafter I fixed https://github.com/appy-one/acebase-server/issues/40 ?Because if you didn't, you are now using a newer
acebaseversion than your oldacebase-serverpackage expects - that might cause issues.@appy-one commented on GitHub (Oct 30, 2022):
Hi Don, I published the fix in
acebasev1.25.2Let me know if you still see that last error you reported after updating
acebase-serverto the latest version