Why is Discourse sometimes not loading?


(xiasummer) #1

The server is placed in China. And usually it works quite good when I’m in the US. But I have to say, sometimes, it just refuses to serve my visiting.

It just shows no feed back. I want to connect to it——no replying. Sometimes there’s a Discourse Frame and sometimes just nothing there. I’m very sure the server works perfectly, Because therer’s a subdomain containing a Wordpress site works really well.
At then, when I refresh the site, sometimes it will show things like:

cannot load /admin/users/list/active.json
cannot load /latest.json?order=default, etc.

So, what’s wrong with Discourse?


(Matt Palmer) #2

You’re going to need to do some debugging. Do the requests reach Discourse at all? If so, what is the response that the server sends back? What do the server logs say?


(xiasummer) #3

TypeError: Cannot read property ‘whiteListTag’ of undefined at http:/

TypeError: Cannot read property ‘whiteListTag’ of undefined at

TypeError: undefined is not an object (evaluating ‘Discourse.Markdown.whiteListTag’) Url: http:/

etc


(cpradio) #4

Seems you have a plugin that isn’t compatible. The way you whitelist tags has changed.

This is a good topic to read

and so is this topic


(Joshua Rosenfeld) #5

Can you load the site in Safe Mode?


(xiasummer) #6

Not quite sure what you are talking about.

Well, does Discourse automatically ban some kind of visiting, like from abroad or from which the web condition is not good?

Why does it feels so bad when I’m abroad while my friends in the same country feel OK?


(Matt Palmer) #7

Have you not heard of the Great Firewall of China?


(xiasummer) #8

Oh, Have to say, your are right.


(xiasummer) #9

AND also, I found it quite strange that the website jump function is working not rightly.

When I want to jump to some like https://www.google.com

It will jump to https%3A%2F%2Fwww.google.com

Seems, something wrong when changing symbols like %3A to be :


(Richard - DiscourseHosting.com) #10

The Great Firewall of China limits access to websites outside of China, for people inside of China, not the other way around.


(Matt Palmer) #11

Nope, it definitely goes both ways.


(Richard - DiscourseHosting.com) #12

Do you have a source for that?

In my experience this is just Hanlon’s Razor in action and it’s just a matter of bad network connections.


(Matt Palmer) #13

I do indeed: first-hand experience running systems in China. As a single third-party example, here’s Tor exit nodes being blocked from accessing a system hosted in China, run by a Chinese CA. They operate a Certificate Transparency log, and it was found that Tor exit nodes were consistently blocked. Upon querying the log operator, they confirmed that the block was definitely not theirs, and they’re in the process of moving the log out of China to provide global accessibility.