~cadence/breezewiki-discuss

3 2

Truncated pages

Details
Message ID
<7123e755da0493c0bbec56c3564d3a00@sovietnation.net>
DKIM signature
missing
Download raw message
On my private instance, plus most public instances, I'm seeing truncated 
responses from breezewiki.

Examples:
* https://bw.artemislena.eu/arknights/wiki/Exusiai
* https://breeze.hostux.net/arknights/wiki/Exusiai
* https://breezewiki.pussthecat.org/arknights/wiki/Exusiai
* https://bw.projectsegfau.lt/arknights/wiki/Exusiai

At least for me, these all end abruptly mid-article (in slightly 
different places?). On my (docker) instance, the logs show:

breezewiki  | Connection error: flush-output: output port is closed
breezewiki  |   output port: #<output-port:tcp-accepted>
breezewiki  |   context...:
breezewiki  |    
/usr/share/racket/collects/racket/private/more-scheme.rkt:163:2: 
select-handler/no-breaks
breezewiki  |    [repeats 8 more times]
breezewiki  |    
/root/.local/share/racket/8.9/pkgs/web-server-lib/web-server/private/dispatch-server-with-connect-unit.rkt:141:2

curl'ing the URLs gives the error "transfer closed with outstanding read 
data remaining". I get the same error when curling locally, bypassing 
the reverse proxy.

Page loads correctly on Fandom itself.
Details
Message ID
<CSUO7PP2O69L.1ZRGU9GUPQYJS@archer>
In-Reply-To
<7123e755da0493c0bbec56c3564d3a00@sovietnation.net> (view parent)
DKIM signature
missing
Download raw message
(This message is more for programmers who want to try tackling this bug since
I don't want my attempt to be entirely in vain)

You can reproduce this bug by setting `page-html` in src/page-wiki.rkt to:
<html><body><div class="mw-collapsible-content">&ndash;</div></body></html>

Printing `page` and `(update-tree-wiki page wikiname)` gives you:
'(*TOP* (html (body (div (@ (class "mw-collapsible-content")) (& ndash)))))
'(*TOP* (html (body (div (@ (class "mw-collapsible-content")) (& (@))))))

I hypothesise that this is caused by lib/tree-updater.rkt line 156, but I can
barely read the thing.
Details
Message ID
<b770facd-f6a7-44ba-baa9-3935591d795f@disroot.org>
In-Reply-To
<CSUO7PP2O69L.1ZRGU9GUPQYJS@archer> (view parent)
DKIM signature
missing
Download raw message
Thanks for the info blankie, that should help me figure out and fix the 
cause of this.
Details
Message ID
<90840991-5afd-4c26-94e8-b7bebd748a0e@disroot.org>
In-Reply-To
<7123e755da0493c0bbec56c3564d3a00@sovietnation.net> (view parent)
DKIM signature
missing
Download raw message
I fixed the bug in the code, so you should see the fix appear on your 
private instance after you update, and public instances whenever they 
decide to update.

https://breezewiki.com/arknights/wiki/Exusai has already been updated and 
you can see the page is no longer truncated. Yay!
Reply to thread Export thread (mbox)