fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.35k stars 343 forks source link

api Sources error documentation #1377

Open davidoskky opened 1 year ago

davidoskky commented 1 year ago

The Sources object contains the field error which is a string. What are the possible errors?

jtojnar commented 1 year ago

If you mean the Source object as returned by /sources/list, it can really contain anything – typically, it is the message extracted from an Exception that occurred during fetching.

Ideally, we would process it somehow to make it translatable but as you can see from the different errors I am getting on my personal selfoss instance below (cleaned up duplicates), the value space is quite large:

And looks like the API docs are incorrect again. When no error occurred, the value will be null not an empty string.