Offline site not working

As reported here, offline function seems to not be working. Have tried multiple browsers, connections and devices. Nothing working. Also there is no information on how to review “Network Error” that is occurring.

Any guidance on how to de-bug this, or follow up would be helpful.

It may seem pointless, but if you could list out in detail what you have tried that will save you and the people helping you some time. What browsers, what your operating system is, etc, etc.

2 Likes

Please see the following:

With Metta,
Ric

1 Like

As @Ric has mentioned; the posts are now in the bugs reports thread. I managed to work out how to post the errors.

See the following post and the two below it:
https://discourse.suttacentral.net/t/suttacentral-bug-reports/27763/12?u=buddho

I have tried on two other Windows machines, and two different internet connections, and one andriod device in the last 4 months, everytime it has failed. This is the only time I have noted the device and browser ect.

Appreciate any help. With Metta.

1 Like

Thanks all for the feedback. So Ven @Sunyo & @sabbamitta and myself all seem to not get this feature of offline working.

As mentioned I have tried so many times in the last 4 months on different devices and configurations.

I have posted the errors on [this]( SuttaCentral: bug reports - #12 by Buddho 2) thread.

Thanks for @Sunyo for the old offline site link, that may be the only reasonable option at the moment. Shame, as this was a very useful feature, not all of us have access to the internet, and is good to be able to be without, as a monk that is.

Hope this bug is resolved.

Duplication; but here is the results again of the error:

8238.f7c5c20c1c7dde5e7f37.js:1          GET https://suttacentral.net/api/suttaplex/sa301-400?language=en 500
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 3309.bf17e7b05ccde1ac2edc.js:27
n @ 3309.bf17e7b05ccde1ac2edc.js:27
defer @ 3309.bf17e7b05ccde1ac2edc.js:27
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
_cacheAllItems @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.then (async)
makeOffline @ 8238.f7c5c20c1c7dde5e7f37.js:1
handleEvent @ main.eabf9bae4b8f43ea9530.js:203
c @ rocket-loader.min.js:1
8238.f7c5c20c1c7dde5e7f37.js:1 Error
    at _handleErrors (8238.f7c5c20c1c7dde5e7f37.js:1:7057)
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.catch (async)
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 3309.bf17e7b05ccde1ac2edc.js:27
n @ 3309.bf17e7b05ccde1ac2edc.js:27
defer @ 3309.bf17e7b05ccde1ac2edc.js:27
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
_cacheAllItems @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.then (async)
makeOffline @ 8238.f7c5c20c1c7dde5e7f37.js:1
handleEvent @ main.eabf9bae4b8f43ea9530.js:203
c @ rocket-loader.min.js:1
8238.f7c5c20c1c7dde5e7f37.js:1          GET https://suttacentral.net/api/suttaplex/sa101-200?language=en 500
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 3309.bf17e7b05ccde1ac2edc.js:27
n @ 3309.bf17e7b05ccde1ac2edc.js:27
defer @ 3309.bf17e7b05ccde1ac2edc.js:27
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
_cacheAllItems @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.then (async)
makeOffline @ 8238.f7c5c20c1c7dde5e7f37.js:1
handleEvent @ main.eabf9bae4b8f43ea9530.js:203
c @ rocket-loader.min.js:1
8238.f7c5c20c1c7dde5e7f37.js:1 Error
    at _handleErrors (8238.f7c5c20c1c7dde5e7f37.js:1:7057)
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.catch (async)
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 3309.bf17e7b05ccde1ac2edc.js:27
n @ 3309.bf17e7b05ccde1ac2edc.js:27
defer @ 3309.bf17e7b05ccde1ac2edc.js:27
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
_cacheAllItems @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.then (async)
makeOffline @ 8238.f7c5c20c1c7dde5e7f37.js:1
handleEvent @ main.eabf9bae4b8f43ea9530.js:203
c @ rocket-loader.min.js:1
8238.f7c5c20c1c7dde5e7f37.js:1          GET https://suttacentral.net/api/suttaplex/sa701-800?language=en 500
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 3309.bf17e7b05ccde1ac2edc.js:27
n @ 3309.bf17e7b05ccde1ac2edc.js:27
defer @ 3309.bf17e7b05ccde1ac2edc.js:27
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
_cacheAllItems @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.then (async)
makeOffline @ 8238.f7c5c20c1c7dde5e7f37.js:1
handleEvent @ main.eabf9bae4b8f43ea9530.js:203
c @ rocket-loader.min.js:1
8238.f7c5c20c1c7dde5e7f37.js:1 Error
    at _handleErrors (8238.f7c5c20c1c7dde5e7f37.js:1:7057)
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.catch (async)
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 3309.bf17e7b05ccde1ac2edc.js:27
n @ 3309.bf17e7b05ccde1ac2edc.js:27
defer @ 3309.bf17e7b05ccde1ac2edc.js:27
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
_cacheAllItems @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.then (async)
makeOffline @ 8238.f7c5c20c1c7dde5e7f37.js:1
handleEvent @ main.eabf9bae4b8f43ea9530.js:203
c @ rocket-loader.min.js:1
8238.f7c5c20c1c7dde5e7f37.js:1          GET https://suttacentral.net/api/suttaplex/sa801-900?language=en 500
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 3309.bf17e7b05ccde1ac2edc.js:27
n @ 3309.bf17e7b05ccde1ac2edc.js:27
defer @ 3309.bf17e7b05ccde1ac2edc.js:27
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
_cacheAllItems @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.then (async)
makeOffline @ 8238.f7c5c20c1c7dde5e7f37.js:1
handleEvent @ main.eabf9bae4b8f43ea9530.js:203
c @ rocket-loader.min.js:1
8238.f7c5c20c1c7dde5e7f37.js:1 Error
    at _handleErrors (8238.f7c5c20c1c7dde5e7f37.js:1:7057)
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.catch (async)
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 3309.bf17e7b05ccde1ac2edc.js:27
n @ 3309.bf17e7b05ccde1ac2edc.js:27
defer @ 3309.bf17e7b05ccde1ac2edc.js:27
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
_cacheAllItems @ 8238.f7c5c20c1c7dde5e7f37.js:1
(anonymous) @ 8238.f7c5c20c1c7dde5e7f37.js:1
Promise.then (async)
makeOffline @ 8238.f7c5c20c1c7dde5e7f37.js:1
handleEvent @ main.eabf9bae4b8f43ea9530.js:203
c @ rocket-loader.min.js:1

Y’all are not going to like this, but this feature has been there for many years now, and whenever I test it, it works just fine. It just did it again on a new machine, and yep there it is.

Computers are complicated, and I’m sorry it doesn’t work for you. In my experience, the problems are likely:

  • network
  • corrupted cache (make sure to completely erase if you have a problem before trying again)
  • configuration (some setting on your computer or browser)
  • browser plugins
  • lack of local storage space (especially a problem on mobiles).
  • old or unsupported browser (for this, I would recommend the latest Chrome; Firefox and Safari should work, but PWA support is better in Chrome.)
  • some OS incompatibility (I’m using Ubuntu, and none of our developers use Windows as a daily driver, so there may be some issue there.)

There’s no need to tell me that none of these things apply: something applies, so if it’s not these it’s something else.

Having said this, I did notice a small bug in the offline version, so we will fix this at some point. At the moment our developer is working hard on a major new feature, so unless someone wants to step up and do the work, we won’t be able to do it any time soon. Maybe later in the year.

I’ll make an issue for this, and add this thread to it so we can review at that point.

thanks Bhante. Not sure what the issue is, but have tried with fresh browsers so not plugin related. Did try with Chrome on three different devices no luck (android and windows).

Anyhow thanks for the update. I shall review suggestions and have another look.

1 Like

I just wanted to put it out there that Pali-English epubs exist:

They could function as a kind of off-line version of the site. They make up in stability what they loose in functionality.

Also, there is this tool that will suck down entire books and output them as an html file:

That lacks a table of contents, though.

2 Likes

and there’s https://thebuddhaswords.net/ which has Bhante Sujato’s translations side-by-side with pali and a pali lookup

FWIW I’ve had a lot of problems with the PWA (offline mode) on mac, iOS and Android even using the newest Chrome.

1 Like

Hi Bhante, I did try again. I guess it is just an error with windows.
Cleared whole browser cache of chrome. Still get same posted errors.

It is a fresh install, not plugins, updated chrome. So I guess just dosn’t work on windows.

Here is what a bit more I found in the debugger, by clicking on one of the requests;

(link shorted due to being a new user)

Request URL: …/sa801-900?language=en
Request Method: GET
Status Code: 500
Remote Address: 172.66.43.24:443
Referrer Policy: no-referrer-when-downgrade
access-control-allow-origin: *
alt-svc: h3=“:443”; ma=86400, h3-29=“:443”; ma=86400
cf-cache-status: BYPASS
cf-ray: 79819fe6f8402748-ADL
content-length: 36
content-type: application/json
date: Sun, 12 Feb 2023 01:41:54 GMT
nel: {“success_fraction”:0,“report_to”:“cf-nel”,“max_age”:604800}
report-to: {“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v3?s=bv3GUwUuJXCkQAVXwlIqHHxsj6Cgi3mp5p2Qav8oABR9KoGRiqvuXb%2BR3lYezqvbaHv3AkR6gncMhwD7eBl4AlVouHRfAHskw1HjWK9mnfj0ej4SINFIaa%2B48mlEpMBsSZs%3D”}],“group”:“cf-nel”,“max_age”:604800}
server: cloudflare
vary: Accept-Encoding
:authority: suttacentral.net
:method: GET
:path: /api/suttaplex/sa801-900?language=en
:scheme: https
accept: /
accept-encoding: gzip, deflate, br
accept-language: en-US,en;q=0.9
referer: SuttaCentral
sec-ch-ua: “Not_A Brand”;v=“99”, “Google Chrome”;v=“109”, “Chromium”;v=“109”
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: “Windows”
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

I also tried Safari in windows, but that dosn’t even load the site at all!

I guess a virtual box is a possible option for windows.

With Metta

Just to note Bhante; that the errored addresses if you go to such as:
SC…/api/suttaplex/sa801-900?language=en
produce an error code |||
| — | — |
|message|“Internal Server Error”| 500

Maybe it is as simple as something to do with the 4 SA addresses.

When I go to the …/sa101-200?view=normal it shows an offline page, anyhow the errors are always the same, so I guess they are failing on these api links.

  • /api/suttaplex/sa101-200?language=en
  • /api/suttaplex/sa301-400?language=en
  • /api/suttaplex/sa701-800?language=en
  • /api/suttaplex/sa801-900?language=en

So maybe linux dosn’t bother with these errors but other systems do. But I have tried for months now on andriod and windows and no once I have got it working, tried all mentioned suggestions. Setting up linux is a little extreme and time consuming.

Thanks anyhow Bhante.

With Metta

Maybe, yes, we’ll check this when we review the PWA later in the year. Thanks so much for the very helpful and specific error reports!

1 Like

Most welcome Bhante. Thankyou.
With Metta