Bug 496550

Summary: KNS content can get stuck updating with "Server stopped accepting new streams before this stream was established" error but shows nothing in the UI
Product: [Applications] Discover Reporter: Nate Graham <nate>
Component: KNewStuff BackendAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: major CC: aleixpol, leinir, sitter
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KNS update log

Description Nate Graham 2024-11-21 18:47:09 UTC
Created attachment 176015 [details]
KNS update log

STEPS TO REPRODUCE
1. Have KNS content available for update
2. Update it
3. Update process gets stuck at 34% with no errors, warnings, or notices shown in the UI.

Debug logging shows the issue, though: a whole bunch of this:

kf.attica: executing Get request for QUrl("https://api.kde-look.org/ocs/v1/content/download/2040022/1")
kf.attica: executing Get request for QUrl("https://api.kde-look.org/ocs/v1/content/download/1256209/1")
kf.attica: executing Get request for QUrl("https://api.kde-look.org/ocs/v1/content/download/2139746/5")
kf.attica: executing Get request for QUrl("https://api.kde-look.org/ocs/v1/content/download/1367056/1")
kf.attica: executing Get request for QUrl("https://api.kde-look.org/ocs/v1/content/download/2137844/1")
kf.attica: executing Get request for QUrl("https://api.kde-look.org/ocs/v1/content/download/1367056/1")
kf.attica: error found QNetworkReply::ContentReSendError
kf.newstuff.core: job error:  1  status code:  0 ""
KNS error in "Wallpaper Plugins" : KNSCore::ErrorCode::NetworkError "Network error 0: Server stopped accepting new streams before this stream was established" QVariant(int, 0)
invalid kns backend! "/home/nate/kde/usr/share/knsrcfiles/wallpaperplugin.knsrc" because: "Network error in backend Wallpaper Plugins: 0"
kns error "/home/nate/kde/usr/share/knsrcfiles/wallpaperplugin.knsrc" "Network error in backend Wallpaper Plugins: 0"
kf.attica: error found QNetworkReply::ContentReSendError
kf.attica: error found QNetworkReply::ContentReSendError
kf.newstuff.core: job error:  1  status code:  0 ""

error 1 but status code 0? And no messages shown to the user? Seems non-ideal. It should at least have the decency to fail and show an error message in the UI.

Full log attached.
Comment 1 Harald Sitter 2025-04-06 17:53:30 UTC
Might be fixed already. Can you still reproduce this?
Comment 2 Bug Janitor Service 2025-04-21 03:47:16 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-05-06 03:47:24 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.