Hey there,
I am having some trouble importing library stuff or federating with Silverbullet. I followed the instructions for both and tried both separately, yet either found 0 templates, or I found some templates, yet nothing got imported. I think once I was able to federate, but then things like /code did nothing (well, it deleted “/code” but no code block was created).
Also I found out that the Silverbullet instance has to be in online mode so that I can at least find the library (e.g. !silverbullet.md/Library/Core/).
Unfortunately the logs on the server have no error messages, yet the browser console does.
I entered !silverbullet.md/Library/Core/ into the Library: Import command box and got this in my browser console:
Fetching listing from federated !silverbullet.md/Library/Core/ federation.plug.js:1:8565
Failed to process https://silverbullet.md/index.json TypeError: NetworkError when attempting to fetch resource. federation.plug.js:1:9112
S https://MY.DOMAIN.DE/_plug/federation.plug.js:1
I https://MY.DOMAIN.DE/_plug/federation.plug.js:1
E https://MY.DOMAIN.DE/_plug/federation.plug.js:1
E https://MY.DOMAIN.DE/_plug/federation.plug.js:1
(Async: EventListener.handleEvent)
E https://MY.DOMAIN.DE/_plug/federation.plug.js:1
<anonym> https://MY.DOMAIN.DE/_plug/federation.plug.js:1
Using cached listing
And the box told me “You are about to import 31 templates, want to do this?”. When I press Ok, I additionally get this in the browser console:
Fetching federated file https://silverbullet.md/Library/Core/Widget/Table of Contents.md federation.plug.js:1:9245
An exception was thrown as a result of invoking function importLibraryCommand error: NetworkError when attempting to fetch resource. federation.plug.js:1:694
E https://MY.DOMAIN.DE/_plug/federation.plug.js:1
E https://MY.DOMAIN.DE/_plug/federation.plug.js:1
(Async: EventListener.handleEvent)
E https://MY.DOMAIN.DE/_plug/federation.plug.js:1
<anonym> https://MY.DOMAIN.DE/_plug/federation.plug.js:1
Error running command NetworkError when attempting to fetch resource. editor_ui.tsx:132:28
onTrigger editor_ui.tsx:132
(Async: promise callback)
onTrigger editor_ui.tsx:131
onSelect command_palette.tsx:69
onEnter filter.tsx:120
S mini_editor.tsx:242
run mini_editor.tsx:170
p view.mjs:4
Ib view.mjs:4
keydown view.mjs:4
Gy view.mjs:3
runHandlers view.mjs:3
handleEvent view.mjs:3
(Async: EventListener.handleEvent)
ensureHandlers view.mjs:3
h6 view.mjs:4
kc mini_editor.tsx:70
Preact 25
openCommandPalette editor.ts:270
syscall system.ts:134
syscall plug.ts:46
onMessage worker_sandbox.ts:72
onmessage worker_sandbox.ts:59
(Async: EventHandlerNonNull)
init worker_sandbox.ts:45
init worker_sandbox.ts:44
invoke worker_sandbox.ts:107
invoke plug.ts:108
dispatchEvent event.ts:67
dispatchEvent event.ts:77
dispatchAppEvent client.ts:663
init client.ts:225
<anonym> boot.ts:23
qr async.ts:98
<anonym> boot.ts:7
<anonym> boot.ts:51
Can somebody help me back trace, if this is an issue on my end? Is there anything else I can try? Besides this importing thing, I was able to use Silverbullet from different devices already quite well, though!
Please tell me, if you need more information and thanks for any kind of help! (=