your-papa/obsidian-Smart2Brain

Indexing fails because token limit hit

Closed this issue · 16 comments

I first tried Smart2Brain on a test vault with about 15 notes and it worked fine.

I then installed it in my main vault with about 400 notes. After about 3 seconds the indexing stops. When clicking again on the Retry Initialization button it fails again.

I use an OpenAI API key and I have enough credits left. I use the same key for my testing and my main vault. Is this a mistake?

Any suggestions of what I can do to make it work?

My Obsidian version is 1.5.8. I am working on a Macbook with Sonoma 14.3.1 and an M1 chip with 8 GB. Do you need any other information?

Can you open the Developer Console and send me the logs?

Ahh yes forgot to tell you that you need to enable the verbose toggle in the plugin settings (advanced section).
Then run it again and you should be able to see some logs.

... I did so now. But ... what then?
SCR-20240228-okty

Then you need to press the Console tab (on the right from Elements).
There you should be able to see all logs.

Sorry for the delay. The entry is short:

app.js:1 Obsidian Developer Console
DevTools failed to load source map: Could not load content for file:///home/runner/work/obsidian-Smart2Brain/obsidian-Smart2Brain/build/smart-second-brain/main.js.map: Unexpected end of JSON input

Can you send me a picture of all logs?
And before making the picture after trying to reinitialize the plugin one more time so that new logs are generated.

Sure, here you are:

SCR-20240228-swqn

This might be caused by excalidraw files or files including huge code blocks.
Will be fixed in the following release.

Workaround that might work:

  1. Update this plugin
  2. If you have excalidraw files in your vault you can add them to the exclude files plugin setting
  3. Clear the plugin data (advanced settings)
  4. Reload obsidian
  5. Click the Plugin icon Ribbon bar to reenter Onboarding
  6. Initialize again

Thank you very much!

Did it do the trick?
If yes, because you had excalidraw files in your vault?

I will let you know!

Indexing failed again. However, I had another issue and I will build up my vault from scratch. If it still isn't working then, I will get back to this thread and provide you with the new logfiles. I had indeed experimented with the excalidraw plugin but had it uninstalled - maybe there are some artefacts left somewhere. Starting from scratch without the excali plugin will give us a clean new start. It may become Friday before I can get back to this. Thank you for your support!

It went faster than I thought. But: When trying to access the plugin the extension manifesto (?) does not load and therefore I cannot install.

Other plugin manifestos load fine.

What do you mean by you cannot access the extension manifesto? And what exactly does not load?