MSzturc / obsidian-advanced-slides

Create markdown-based reveal.js presentations in Obsidian
https://mszturc.github.io/obsidian-advanced-slides/
MIT License
987 stars 82 forks source link

Show nothing when click 'show slide preview' #235

Closed woshichuanqilz closed 1 year ago

woshichuanqilz commented 1 year ago

Describe the bug Show nothing when click 'show slide preview' image

Samples to Reproduce Steps & Examples to reproduce the behavior:

  1. install this plugin
  2. create a new note with content
    # ori
    --- 
    # 2

    show nothing

Expected behavior show the slides

zickzackv commented 1 year ago

Same Problem for me. From the the developer console:

caught (in promise) Error: ENOENT: no such file or directory, open '/Users/zickzackv/Source/READMEs/.obsidian/plugins/obsidian-advanced-slides/template/reveal.html' a

RiverOmega commented 1 year ago

In the settings I changed the port from 3000 to something else: image

... and now it works. Try that and see if it helps.

zickzackv commented 1 year ago
server started at http://localhost:3001
plugin:obsidian-jira-issue:10160 Error while retrieving custom fields list of account: Default Error: Error: net::ERR_EMPTY_RESPONSE
    at sendRequest (plugin:obsidian-jira-issue:10016:11)
    at async Object.updateCustomFieldsCache (plugin:obsidian-jira-issue:10140:26)
updateCustomFieldsCache @ plugin:obsidian-jira-issue:10160
plugin:obsidian-advanced-slides:318 Uncaught (in promise) Error: ENOENT: no such file or directory, open '/Users/zickzackv/Source/READMEs/.obsidian/plugins/obsidian-advanced-slides/template/reveal.html'
plugin:obsidian-advanced-slides:336 Error: unable to get local issuer certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1540:34)
    at TLSSocket.emit (node:events:513:28)
    at TLSSocket._finishInit (node:_tls_wrap:959:8)
    at ssl.onhandshakedone (node:_tls_wrap:743:12)

My firefox connecting to http://localhost:3001 waits for ever. At least its waiting now! Sadly still not a fix for me.

bducasse33 commented 1 year ago

I had this problem after installing multiple other plugins. I thought maybe one of them was conflicting somehow with Advanced Slides. I tried disabling them one by one, then uninstalling them. Still same problem. Finally I copied all of my notes to a new directory and started a fresh vault from there. I installed Advanced Slides and everything works fine. Now I'm reinstalling other plugins one at a time to see if I can identify one that was causing a problem. Maybe worth a try.

zickzackv commented 1 year ago

Found the root cause of my problem!

I'm running Obsidian on my work laptop which has restricted network access. All TLS certificates are intercepted and replaced by our own certificates.

The plugins are downloaded with obsidians downloader which uses the systems cert store including the replaced root cert. I'm guessing that the plugin itself downloads the javascript files with its own node code which uses a different cert store. So the plugin could not download its presenter javascript files.

Temporarly disabling the MITM Proxy and installing the plugin again allowed it to download its files.

My case is now closed. Thanks!

Maybe tinkering with your network settings is also a solution for @woshichuanqilz?

woshichuanqilz commented 1 year ago

In the settings I changed the port from 3000 to something else: image

... and now it works. Try that and see if it helps.

It is right for me the port issue.

ryanklee commented 1 year ago

For anyone experiencing this issue due to Zscaler or the like, one hacky, security-risky workaround is to add the following line to the head of main.js in the plugin directory:

process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';

This won't survive any updates, to the file, of course, but works in the interim.