fossar / selfoss

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

api Sources error documentation #1377

Open davidoskky opened 2 years ago

davidoskky commented 2 years ago

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

jtojnar commented 2 years 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.