anytype-heart icon indicating copy to clipboard operation
anytype-heart copied to clipboard

Export is broken

Open axelkar opened this issue 1 year ago • 5 comments

Have you read a contributing guide?

  • [X] I have read CONTRIBUTING.md
  • [X] I have searched the existing issues and didn't find any that were similar
  • [X] I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

When I export, the export dir gets filled with a bunch of stuff, but then Anytype freezes and I get these logs:

01:04:07.340 › {"level":"ERROR","ts":"2024-11-21T01:04:07.340+0200","logger":"anytype-mw-export","msg":"failed to get smartblock type: error unknown change type","objectId":"bafyreigmkayuzhpohdht2ejiahq2uvynpeubh65oi7ueyo4pl6w2kby3se"}

{"level":"ERROR","ts":"2024-11-21T01:04:07.340+0200","logger":"anytype-mw-export","msg":"failed to get smartblock type: error unknown change type","objectId":"bafyreigmkayuzhpohdht2ejiahq2uvynpeubh65oi7ueyo4pl6w2kby3se"}

Expected Behavior

It should work

Steps To Reproduce

  1. Export a space (with a file? or corrupted object?!)

Environment

- OS: NixOS
- Version: 0.43.1

Anything else?

No response

axelkar avatar Nov 20 '24 23:11 axelkar

Exporting a different space led to a freeze with no error

axelkar avatar Nov 20 '24 23:11 axelkar

Is this Importing an export? Or creating the initial export? Maybe I misunderstood.

If it is importing, You have to remove the file index.pb.json inside the export zip file.

Can you try checking if that file exists, and remove it from the zip? It should fix it.

alexjp avatar Nov 25 '24 22:11 alexjp

This happens when I click on File > Export Space. Does the Untitled page bug have something to do with this?

axelkar avatar Nov 26 '24 14:11 axelkar

ohh, than I am sorry, I misunderstood. The error message is very similar to what happens to me though.

alexjp avatar Nov 26 '24 15:11 alexjp

Opening the object mentioned in the log by making an anytype://object link results in a "There was a problem while opening the object, please send the debug info to the support team." and this error in the DevTools console: Error ObjectOpen code: 1 description: build tree: tree does not exist.

axelkar avatar Jun 10 '25 18:06 axelkar