flarum / issue-archive

0 stars 0 forks source link

[Pusher] Randomly causes endless loading on Firefox #244

Open dsevillamartin opened 5 years ago

dsevillamartin commented 5 years ago

A few of the core members have found that Flarum Discuss sometimes never finishes loading on Firefox. It is not a very common occurrence, and seems to be caused by Pusher.

When looking at the requests, we can see Pusher is the culprit. There's no HTTP status code returned or size, and Firefox shows it's waiting for Pusher.

image

We can see both stats.pusher.com and sockjs.pusher.com are hanging and never returning, even when a request timeout should be thrown.

It is unknown why this is happening or even if we can fix it ourselves.

jordanjay29 commented 5 years ago

I've experienced this before. Last time I saw it (Sept 5, '18), I noted the following:

The site loads like normal, but the loading never stops (the browser's "Waiting for discuss.flarum.org" appears in the status bar at the bottom) and the console mentions

Loading failed for the <script> with source “https://stats.pusher.com/timeline/v2/jsonp/1?session=MjMzMTY3ODQz&bundle=MQ%3D%3D&key=MzIyNDA5ZTQ5OWY2ZjU0OGY1NzM%3D&lib=anM%3D&version=My4wLjA%3D&cluster=bnVsbA%3D%3D&features=WyJ3cyJd&timeline=W3siaW5zdGFuY2VzIjoxLCJ0aW1lc3RhbXAiOjE1MzYxMzA4OTM5NjZ9LHsic3RhdGUiOiJjb25uZWN0aW5nIiwidGltZXN0YW1wIjoxNTM2MTMwODkzOTY2fSx7ImNhY2hlZCI6dHJ1ZSwidHJhbnNwb3J0IjoieGhyX3N0cmVhbWluZyIsImxhdGVuY3kiOjIzODksInRpbWVzdGFtcCI6MTUzNjEzMDg5Mzk2Nn0seyJjaWQiOjEsInRyYW5zcG9ydCI6Inhocl9zdHJlYW1pbmdzIiwidGltZXN0YW1wIjoxNTM2MTMwODkzOTY3fSx7ImNpZCI6MSwic3RhdGUiOiJpbml0aWFsaXppbmciLCJ0aW1lc3RhbXAiOjE1MzYxMzA4OTM5Njd9LHsiY2lkIjoxLCJzdGF0ZSI6ImluaXRpYWxpemVkIiwidGltZXN0YW1wIjoxNTM2MTMwODk0MDE2fSx7ImNpZCI6MSwic3RhdGUiOiJjb25uZWN0aW5nIiwidGltZXN0YW1wIjoxNTM2MTMwODk0MDE2fSx7ImNpZCI6MSwic3RhdGUiOiJvcGVuIiwidGltZXN0YW1wIjoxNTM2MTMwODk0MTk2fSx7InN0YXRlIjoiY29ubmVjdGVkIiwicGFyYW1zIjp7InNvY2tldF9pZCI6IjI0Mzg0MS4yMDI5NzcifSwidGltZXN0YW1wIjoxNTM2MTMwODk0MTk4fV0%3D”.

ericendo commented 5 years ago

Happening here too. Maybe an update to the latest js version would fix? Actually Flarum uses https://js.pusher.com/3.0/pusher.min.js but there is a new version https://js.pusher.com/4.4/pusher.min.js