Browse Source

3.0.0-b6

Remove 'BODY is not RSS or ATOM' error from console logging'
master
benji7425 4 years ago
parent
commit
e3c102aa5b
  1. 7
      CHANGELOG.md
  2. 8
      app/models/feed-data.js
  3. 2
      package.json

7
CHANGELOG.md

@ -1,5 +1,12 @@
# Changelog
## v3.0.0-b6
### Updatd
- Removed "Body is not RSS or ATOM" error from being console logged
- These seem to happen quite a lot, but don't actually impair the functionality, so just cause un-necessary spam
## v3.0.0-b5
### Added

8
app/models/feed-data.js

@ -70,8 +70,12 @@ module.exports = class FeedData {
_doFetchRSS(guild) {
FeedRead(this.url, (err, articles) => {
if (err)
return DiscordUtil.dateError(err.message || err);
//filter out "Body is not RSS or ATOM" errors because these seem to happen rather frequently
if (err) {
if (err.message !== "Body is not RSS or ATOM")
DiscordUtil.dateError("Error reading RSS feed: " + (err.message || err));
return;
}
const latest = normaliseUrl(articles[0].link);

2
package.json

@ -1,5 +1,5 @@
{
"version": "3.0.0-b5",
"version": "3.0.0-b6",
"main": "app/index.js",
"scripts": {
"postinstall": "cd ./discord-bot-core && npm install",

Loading…
Cancel
Save