I downloaded the SAFE Browser, created an account, received my invitation etc. but I don’t seem to be able to access any website.
I’m just getting app.webFetch is not a function. I’m on Arch Linux, using version 0.14.1 for 64-bit Linux.
I downloaded release binary, hashes match. It seems to me like the browser is broken but no one else complains so maybe I’m doing something wrong?
Mainly tested on ubuntu 18.04 (IIRC). It may be related to your window manager or version of GLIBC ?
I’m using glibc version 2.29-4. I don’t really know what version is in Ubuntu repos
The window manager I’m using is bspwm but I’m not quite convinced it matters
I have had issues with i3/awesome etc. with some gui apps. I think this issue sounds like some library (so file) may be missing a function. I will let the guys try and work it out perhaps, although arch right now is not supported (just time really). I wonder if you could try compiling the browser?
I recall other people having difficulties with Arch at various times over the years. From my experience the browser and other apps definitely work better on some Linuxes than others. I also had problems with Windows a little while back, but that seems to have been resolved.
I am able to compile the browser, however the problem persists in the compiled browser.
Error message can also be seen in logs from running the browser with yarn:
[background 19:30:10.379] › SAFE Fetch error: null app.webFetch is not a function
I’ve been using Arch successfully for the past 2 years in combination with SAFE except for compiling the vault. I don’t think this is an Arch issue; it must be something higher level to do with JavaScript.
How are you testing this function/code, via the console or a web server? Is app
defined, or is it just that function?
Edit: How did you initialise app
? Do any of the snippets from the docs work? (E.g. const safeApp = await window.safe.initialiseApp(appInfo);
)
There’s a misunderstanding; I’m not trying to create my own website, merely trying to open any of the websites listed here
Then perhaps it’s a problem with the site you are trying to load from that list, can you specify which one/s exactly gives you that error so we can try it/them? it could be some of them are outdated or simply not working
Sorry, I indeed misunderstood then. I’m curious about the answer to the same question as @bochaco then. It’s probably an outdated site or it contains a bug.
I randomly picked some and none works. These are the ones I’ve tried just now:
safe://cyberpunk
safe://eye.eye
safe://to-do
safe://safenetworkprimer2
All of them only display bold app.webFetch is not a function.
I’m loading them successfully (Ubuntu here now), even being able to play the video from safe://cyberpunk. Have you registered/synced your IP on https://invite.maidsafe.net/ ?
Are you as least able to log in using the Authenticator and your credentials?
I have, and I’m able to log in.
Is webFetch
an experimental function, @bochaco? I know fetch
is, but webFetch
doesn’t state so in the documentation? Or should it then show another error?
@GOKOP could you try enabling experimental in the browser?
No, webFetch
it’s not an experimental feature. It sounds to me it’s more related to the browser not loading all the libs properly thus the API not loaded in the browser itself (as I think it fails to fetch the website rather than the website failing to webFetch
…?..).
@GOKOP this sounds to me like the internal app is failing to start itself (we have something to make this clearer planned, but its backlog at the moment I’m afraid).
This issue is normally (on linux) due to some issue with registering url handling in the system. Does your flavour of arch use xdg-open
eg? And if so, what version
I have xdg-open v 1.1.3
I have had this same issue several times in the past on fedora. Switching from lxde to xcfe was a fix. Another time a browser version bump had made it. It seems to be something recurrent with linux environment, if you search the forum ( and also forum.safefev.org ), using “safedev” as a keyword you will find a whole bunch of episodes orbiting around xdg-open , mime types and window managers
For information, not all Linux use has been painful. I’ve used Mint Debian (LMDE) and Ubuntu without these issues. Also, Mac has had a similar long term problem, and Windows too.
I want to mention this in case people think it’s just Linux!
Yeah, Ubuntu has long been the gold standard for usable linux, IMO. Other flavours may also be good and some are more for the tinkerer, but if you want to get stuff done, Ubuntu ticks the boxes.