question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues viewing safe://dweb with SB 0.15.2

See original GitHub issue

I built 0.15.2 to try it out with safe://dweb before I announce a new post and see quite a few issues. There are now three versions of safe://dweb on the shared vault so it might be a good test for bugs and/or to highlight things that need to be done differently for websites to work on SAFE.

Ideally a versioned/pWeb static website like this would ‘just work’ but I’m not sure if that will be possible, so this is potentially a place to highlight things that work on the web but not SAFE, and how to fix them.

The kinds of things I’m seeing are shown below (using the shared vault):

Default (latest version)

  • load safe://dweb: page displays but styles are not loaded
  • click on ‘Blog’ at top of page: ‘index.html’ is not loaded so SB shows file listing
  • click on ‘index.html’: page displays correctly and then disappears, and then shows 404
  • reload the page: same happens again
  • click on ‘Blog’ at top of page: page displays correctly
  • click on ‘Why Solid on SAFE?’: the post displays correctly
  • page navigation links (Home, About, Blog) now seem to work and pages display correctly
  • click ‘Blog’ > ‘Why Solid on SAFE?’ > ‘Back to Articles’ (at bottom of page): page doesn’t load index.html and instead displays directory listing

This is before trying to step back through versions.

Try versioning

Clean tab:

  • visit ‘safe://dweb’: styles don’t load (as above)
  • click < for previous version: address bar shows ?v=1 and the page loads properly (ie including styles)
  • click < again: address bar updates to ?v=0 and page renders index.html as text (not HTML).

That’s enough for now!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
happybeingcommented, Oct 24, 2019

Trying out safe://solid-filemanager which worked fine with 0.15.1, I can’t get any page to load as HTML. Typing any of the following into the address bar all show the HTML of index.html as text rather than rendering the HTML:

solid-filemanager
safe://solid-filemanager/index.html
safe://solid-filemanager/index.html?v=2
safe://solid-filemanager/index.html?v=1
safe://solid-filemanager/index.html?v=0
safe://solid-filemanager/?v=2

Same when moving back and forward through versions with < and >

Note:

  • safe://dweb is built using React-static
  • safe://solid-filemanager is built using React
0reactions
joshuefcommented, Nov 7, 2019

15.1 just assumed everything was text/html. We added proper mimetype detection with 15.2, so this issue was just masked prior, I think.

Good to hear that’s going now. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found