Bug 390427 - Unknown Open Collaboration Service API error when clicking on addons in Discover
Summary: Unknown Open Collaboration Service API error when clicking on addons in Discover
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.12.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-14 05:51 UTC by Andrew Crouthamel
Modified: 2018-10-11 16:30 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Video of API error and addon failed install behavior (1.23 MB, video/webm)
2018-02-14 05:51 UTC, Andrew Crouthamel
Details
notification error (499.98 KB, image/png)
2018-03-07 11:34 UTC, kts
Details
notification error 2 (88.23 KB, image/png)
2018-03-07 11:47 UTC, kts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Crouthamel 2018-02-14 05:51:47 UTC
Created attachment 110642 [details]
Video of API error and addon failed install behavior

I see some other  bugs with this error or similar, but other products. So this may be a backend framework item that I don't know about. But I'm filing it here since it's easily reproducible in Discover and affects a great portion of its usability.

When clicking on an addon in Discover, a notification message appears stating "icons.knsrc: Unknown Open Collaboration Service API error (0)" displays. If you click Install, it quickly responds that it is finished. But the addon is not installed. When you click Remove, a button showing "done" gets stuck, and you have to click away and back into the same addon for the Install button to appear again.

Attached is a video of this message and behavior. 

KDE Plasma Version: 5.12.0
KDE Frameworks Version: 5.42.0
Qt Version: 5.9.3
Kernel Version 4.13.0-32-generic
OS Type: 64-bit
Comment 1 Nate Graham 2018-02-18 02:27:37 UTC
Confirmed, I have the same issue in Neon and Kubuntu. Here's the full error (printed to the console):

parse():: XML Error:  "Premature end of document." 
In XML:
 ""
kns error "/etc/xdg/colorschemes.knsrc" "Unknown Open Collaboration Service API error. (0)"
qml: message: colorschemes.knsrc: Unknown Open Collaboration Service API error. (0)
Could not determine type of archive file ' "/tmp/wl2124-88853-ZvonMidnight.colors" '


The XML file that the knsrc file is point to is available at https://autoconfig.kde.org/ocs/providers.xml

It doesn't look like any XML file I've ever seen. Aleix, is any of this valid? I'm beginning to suspect that the bug is with our KNS data provider rather than with Discover.
Comment 2 Aleix Pol 2018-02-18 16:19:04 UTC
Git commit a6d70b828d805f2cca271318d216344cec30204f by Aleix Pol.
Committed on 18/02/2018 at 16:17.
Pushed by apol into branch 'master'.

Remove wrong icon

CCMAIL: notmart@gmail.com

M  +0    -3    ocs/providers.xml

https://commits.kde.org/websites/autoconfig-kde-org/a6d70b828d805f2cca271318d216344cec30204f
Comment 3 Aleix Pol 2018-02-18 16:20:01 UTC
Uh different thing
Comment 4 Scott Harvey 2018-02-27 19:11:36 UTC
This same "Unknown Open Collaboration Error" code 103 occurs in Discover and any of the "Get New <X>" items from System Settings. I presume it's caused by packages that aren't Plasma 5 compatible. As a new (but enthusiastic) KDE user, I'm intrigued by all the available eye candy. Ideally, themes, icon packs, etc., that aren't Plasma 5 compatible would be filtered out. It's a bummer to see some item that's 5-star rated only to get a cryptic error. Or to check it out on store.kde.org and see that it's 9 years old. If I could help fix this, I gladly would.
Comment 5 Nate Graham 2018-03-01 18:39:01 UTC
Scott, we are currently discussing plans to improve and curate the KNS content. It's great to hear that you're like to help out with this! Once we have more concrete details, I'll let you know how you can participate.
Comment 6 kts 2018-03-07 11:34:13 UTC
Created attachment 111242 [details]
notification error

Not sure whether it's related but I also have many notification errors involving knsrc so I'll just leave the attachment here for verification.
Comment 7 kts 2018-03-07 11:47:35 UTC
Created attachment 111243 [details]
notification error 2

Another one. I have many notification errors before 5.12.3 concerning <something>.knsc.
Now with 5.12.3, I have still a few of those left which I provided in these two attachments.
Comment 8 Nate Graham 2018-03-08 21:41:44 UTC
kts, can you please file new bugs for those issues?
Comment 9 Aleix Pol 2018-10-11 16:30:16 UTC
I cannot reproduce this anymore, so I'm guessing it was an error on the service provider.