-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] core: Add option to disable errors in feeds #1071
[WIP] core: Add option to disable errors in feeds #1071
Conversation
In that case, does the error get silently dropped? Can't the bridge requests request some kind of error? https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_Server_errors 503 looks good to me. |
@somini You mean to return errors this way, right? rss-bridge/actions/DisplayAction.php Line 226 in 3b8f3da
That was actually the original code before returning errors in the feed. I suppose if the option is disabled we can revert to the original behavior. |
I think that's what I mean. Not just keeping the feed clean of "Bridge returned error" false items, but exposing the error as a HTTP status code for the Bridge request. I agree that this being a breaking change can be disabled by default. |
I changed the implementation to allow for more options. Three are available right now:
@somini Does that work for you? |
LGTM, I have configured my personal instance with the "http" configuration, let's see what happens in the next few days. |
Bridge errors are currently included as part of the feed to notify users about erroneous bridges (before that, bridges silently failed). This solution, however, can produce a high load of error messages if servers are down (see #994 for more details). Admins may also not want to include error messages in feeds in order to keep those kind of problems away from users or simply to silently fail by choice. This commit adds a new configuration section "error" with one option "output" which can be set to following values: "feed": To inclue error messages in the feed (default) "http": To return a HTTP header for each error "none": To disable error reporting Note that errors are always logged to 'error.log' independend of the settings above. References #1066
Any news on that? |
This solves the problem without any side effects. I still get rate-limited sometimes, but since RSS Bridge sends a HTTP error, the feed reader tries again after some time. This is completely transparent. No more erroneous "Bridge returned error" feed items. This could even be the default, seems semantically more meaningful, but it would be a breaking change. It should be OK mentioning this on the default config file and on the release notes. |
I'm still running this on
This happened on the Twitter bridge before 2bb9480, it sends you in a redirect loop and those 302 errors are erroneously passed to the outside. |
Any chance of merging this? I have been using it for months with no issues. |
Implemented this on somini@eb21d6f, will run it on my instance to check for issues. |
Friendly ping on this issue. I'm running this without issues since June. Be advised about somini@eb21d6f, to avoid infinite loops. It's a small change. |
Thanks for the reminder, I'll merge this and #1179 now. |
@logmanoriginal I'm sorry, it seems this particular commit was overlooked: This is treating the redirect error codes as special cases and send a different error. Otherwise, this might leads to issues. |
Sorry, totally forgot about that. Would you mind opening a PR for it? |
This might lead to redirect loops. See RSS-Bridge#1071 (comment) Cherry-picked from eb21d6f.
Not sure why I did not do that in the first place. It's on #1359 |
This might lead to redirect loops. See #1071 (comment) Cherry-picked from eb21d6f.
…#1071) Bridge errors are currently included as part of the feed to notify users about erroneous bridges (before that, bridges silently failed). This solution, however, can produce a high load of error messages if servers are down (see RSS-Bridge#994 for more details). Admins may also not want to include error messages in feeds in order to keep those kind of problems away from users or simply to silently fail by choice. This commit adds a new configuration section "error" with one option "output" which can be set to following values: "feed": To include error messages in the feed (default) "http": To return a HTTP header for each error "none": To disable error reporting Note that errors are always logged to 'error.log' independent of the settings above. Closes RSS-Bridge#1066
This might lead to redirect loops. See RSS-Bridge#1071 (comment) Cherry-picked from eb21d6f.
Bridge errors are currently included as part of the feed to
notify users about erroneous bridges (before that, bridges
silently failed).
This solution, however, can produce a high load of error
messages if servers are down (see #994 for more details).
Admins may also not want to include error messages in feeds
in order to keep those kind of problems away from users or
simply to silently fail by choice.
This commit adds a new configuration section "error" with
one option "in_feed" which can be set to "true" to enable
the current behaviour (this is the default option) or to
"false" to disable it.
References #1066