Open davidoskky opened 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:
"2022-10-14 11:59:52error loading feed content: Server error: `GET http://protocol.clubpenguinwiki.info/w/api.php?hidebots=1&days=130&limit=50&action=feedrecentchanges&feedformat=atom` resulted in a `500 Internal Server Error` response:\n<!doctype html><html><head><title>Internal Server Error</title></head><body><h1>Internal Server Error</h1><p>DB connecti (truncated...)\n"
"2022-10-14 11:59:56error loading feed content: http://vihart.com/feed/ is invalid XML, likely due to invalid characters. XML error: Mismatched tag at line 17, column 8"
"2022-10-14 11:59:59error loading feed content: cURL error 6: Could not resolve host: carphon.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"
"2022-10-14 12:01:24error loading feed content: http://dord.horse/rss is invalid XML, likely due to invalid characters. XML error: EntityRef: expecting ';' at line 1, column 407"
"2022-10-14 12:04:06error loading feed content: Client error: `GET http://bitemyapp.com/atom.xml` resulted in a `404 Not Found` response:\n<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message (truncated...)\n"
"2022-10-14 12:04:20error loading feed content: Could not authenticate you."
"2022-10-14 12:06:08error loading feed content: cURL error 28: Failed to connect to www.clubpenguinisland.com port 443 after 7505 ms: Connection timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"
"2022-10-14 12:06:51error loading feed content: Client error: `GET https://graph.facebook.com/XXXXXXXXXXXX?access_token=XXXXXXXXXXXXXXXX%XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&fields=name,picture%7Burl%7D,link,feed%7Bid,message,created_time,attachments,permalink_url%7D` resulted in a `400 Bad Request` response:\n{\"error\":{\"message\":\"(#100) Object does not exist, cannot be loaded due to missing permission or reviewable feature, or (truncated...)\n"
"2022-10-14 12:07:21error loading feed content: Client error: `GET https://www.parahumans.net/feed/` resulted in a `403 Forbidden` response:\n<html>\n<head><title>403 Forbidden</title></head>\n<body>\n<h1>403 Forbidden</h1>\n<ul>\n<li>Code: AccessDenied</li>\n<li>Mess (truncated...)\n"
"2022-10-14 12:08:06error loading feed content: cURL error 35: error:16000069:STORE routines::unregistered scheme (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"
"2022-10-14 12:08:11error loading feed content: incorrect username or password\n"
"2022-10-14 12:08:51error loading feed content: https://XXXXXXXXXXX.XXX/XXXXXX/rss.xml is invalid XML, likely due to invalid characters. XML error: XML_ERR_NAME_REQUIRED at line 1, column 2"
"2022-10-14 12:13:30error loading feed content: cURL error 35: error:16000069:STORE routines::unregistered scheme (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"
"2022-10-14 12:14:39error loading feed content: http://pristupnost.nawebu.cz/weblog/rss.php is invalid XML, likely due to invalid characters. XML error: Undeclared entity warning at line 156, column 1"
"2022-10-14 12:16:03error loading feed content: http://feeds.feedburner.com/kcc is invalid XML, likely due to invalid characters. XML error: > required at line 1, column 49"
"2022-10-14 12:16:23error loading feed content: cURL error 28: Connection timed out after 10000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"
And looks like the API docs are incorrect again. When no error occurred, the value will be null
not an empty string.
The Sources object contains the field error which is a string. What are the possible errors?