I have synchronised a previously uploaded directory recursively to the shared vault network using the following command:
safe files sync "../www.phantom/public" "safe://shaneblahblah4" --update-nrs --recursive
This command executes as expected and gives the following result (The index.php was already uploaded in a previous version):
FilesContainer synced up (version 4): "safe://shaneblahblah4"
+ ../www.phantom/public/build/bundle.css safe://hbhyyyngbcysurp13pon7p45wp55fz33b1pke56ofh9ngkgfu1bt8ins3t
+ ../www.phantom/public/build/bundle.css.map safe://hbhydydxs4xym6daqdw9depr4x3g8g4ahnqgo44qgn3src1x8sojae4jer
+ ../www.phantom/public/build/bundle.js safe://hbkygynjkdckfw7ghcetd58348t75draai5qo1em38w7xmxqwdijxqkhba
+ ../www.phantom/public/build/bundle.js.map safe://hbhydyddaxbpxxgcy1aspdy4bh81h1m1ws4tdy1akzeu4drrhbcpkshchu
However, when I try to load the page safe://shaneblahblah4
, the index.html
loads but the build/bundle.js
file fails to load.
The file shows in the directory listing safe://shaneblahblah4/build
:
However, the actual bundle.js file fails to load:
Even with the cache disabled, I am unable to get the file to load (it says it’s being loaded from the disk cache, I’m going to assume this is because the safenet API is acting as middleware for the request so it will say it’s being served from the disk cache regardless):
It’s possible this is a cache issue, but if so I’ve been unable to debug it, I’ve tried clearing it in the Developer Tools => Application => Clear Storage
window.
Running the following command in my CLI works as expected:
safe cat safe://hbkygynjkdckfw7ghcetd58348t75draai5qo1em38w7xmxqwdijxqkhba
The output is the expected bundle.js
content:
.......(t),o.c()),q(o,1),o.m(n,null))},i(t){r||(q(o),r=!0)},o(t){C(o),r=!1},d(t){t&&f(n),c[e].d()}}}function Z(t,n,e){let o;return i(t,U,t=>e(0,o=t)),[o]}return new class extends R{constructor(t){super(),T(this,t,Z,Y,s,{})}}({target:document.body,props:{name:"world"}})}();
//# sourceMappingURL=bundle.js.map
So the bug seems to be isolated to my SAFE Browser. I am running version 0.15.4, installed on Windows 10 through the SAFE Network App version 0.0.5.584
downloaded from here: https://github.com/maidsafe/safe-network-app/releases/tag/v0.0.5
Cheers,
Shane