Comments (11)
提示什么还是完全没有提示 有log吗?
from noderssbot.
提示什么还是完全没有提示 有log吗?
完全没有提示,就是 telegram 的 bot 上完全没有输出,我在 NodeRSSBot 已经订阅了https://rsshub.app/twitter/user/YahooNewsTopics
尽管twitter帐号内容在更新,但是 bot 完全没有内容输出
from noderssbot.
我在demo中订阅上面连接能够正常收到更新。自建的话麻烦提供log
from noderssbot.
我在demo中订阅上面连接能够正常收到更新。自建的话麻烦提供log
2|node_rss | info: fetch every 1 minutes {"timestamp":"2019-08-09T05:49:08.103Z"}
2|node_rss | info: fetch a round {"timestamp":"2019-08-09T05:49:08.132Z"}
2|node_rss | info: start fetching {"timestamp":"2019-08-09T05:50:00.033Z"}
2|node_rss | info: fetch a round {"timestamp":"2019-08-09T05:50:00.035Z"}
2|node_rss | info: start fetching {"timestamp":"2019-08-09T05:51:00.046Z"}
2|node_rss | info: fetch a round {"timestamp":"2019-08-09T05:51:00.884Z"}
2|node_rss | error: Bad Request: can't parse entities: Expected end tag at byte offset 156 {"timestamp":"2019-08-09T05:51:01.787Z"}
2|node_rss | info: start fetching {"timestamp":"2019-08-09T05:52:00.064Z"}
2|node_rss | info: fetch a round {"timestamp":"2019-08-09T05:52:00.869Z"}
2|node_rss | info: start fetching {"timestamp":"2019-08-09T05:53:00.055Z"}
2|node_rss | info: fetch a round {"timestamp":"2019-08-09T05:53:00.824Z"}
2|node_rss | info: start fetching {"timestamp":"2019-08-09T05:54:00.027Z"}
2|node_rss | info: fetch a round {"timestamp":"2019-08-09T05:54:00.780Z"}
2|node_rss | info: start fetching {"timestamp":"2019-08-09T05:55:00.037Z"}
2|node_rss | info: fetch a round {"timestamp":"2019-08-09T05:55:00.790Z"}
2|node_rssbot | info: start fetching {"timestamp":"2019-08-09T05:56:00.068Z"}
2|node_rssbot | info: fetch a round {"timestamp":"2019-08-09T05:56:01.034Z"}
2|node_rssbot | error: Bad Request: can't parse entities: Expected end tag at byte offset 152 {"timestamp":"2019-08-09T05:56:01.915Z"}
2|node_rssbot | info: start fetching {"timestamp":"2019-08-09T05:57:00.065Z"}
2|node_rssbot | info: fetch a round {"timestamp":"2019-08-09T05:57:00.860Z"}
2|node_rssbot | error: Bad Request: can't parse entities: Expected end tag at byte offset 157 {"timestamp":"2019-08-09T05:57:01.065Z"}
from noderssbot.
贴出来的log看不出什么问题。 logs下的 error log看一下
from noderssbot.
贴出来的 log 看不出什么问题。 logs 下的 error log 看一下
/root/.pm2/logs/node-rssbot-error.log 中没有错误日志
/root/.pm2/logs/index-error.log 中的内容
{ Error: Cannot find module 'telegraf'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Module.Hook._require.Module.require (/root/.nvm/versions/node/v10.3.0/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:51:27)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/root/NodeRSSBot/index.js:1:80)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Object. (/root/.nvm/versions/node/v10.3.0/lib/node_modules/pm2/lib/ProcessContainerFork.js:27:21) code: 'MODULE_NOT_FOUND' }
{ Error: Cannot find module 'telegraf'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Module.Hook._require.Module.require (/root/.nvm/versions/node/v10.3.0/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:51:27)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/root/NodeRSSBot/index.js:1:80)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
from noderssbot.
rssbot目录下 的logs中的error.log 或者用docker省事省心:joy:
from noderssbot.
error.log
我是纯小白,希望大佬别见笑
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 156","level":"error","timestamp":"2019-08-09T05:51:01.787Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 152","level":"error","timestamp":"2019-08-09T05:56:01.915Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 157","level":"error","timestamp":"2019-08-09T05:57:01.065Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 152","level":"error","timestamp":"2019-08-09T06:27:01.559Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 154","level":"error","timestamp":"2019-08-09T06:58:01.348Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 155","level":"error","timestamp":"2019-08-09T07:29:01.356Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 157","level":"error","timestamp":"2019-08-09T08:00:01.556Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 154","level":"error","timestamp":"2019-08-09T08:31:01.574Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 157","level":"error","timestamp":"2019-08-09T09:02:01.716Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 155","level":"error","timestamp":"2019-08-09T09:33:01.526Z"}
{"message":"Bad Request: can't parse entities: Expected end tag at byte offset 157","level":"error","timestamp":"2019-08-09T10:04:01.487Z"}
from noderssbot.
rssbot 目录下 的 logs 中的 error.log 或者用 docker 省事省心😂
用 docker 布署也是同样的问题
from noderssbot.
发现问题的原因是某些推文的标题中包含一些html中需要转义的字符。例如
<a href="https://twitter.com/YahooNewsYuru/status/1160149802388037632">㊗️🎉🎁おめでと~~㊗️🎉🎁<br>乃木坂46・齋藤飛鳥、21歳の誕生日! ファンから祝福の声が続々<...</a>
在textNode中出现了<
,在RSSHub生成的RSS中没有转义。这样Telegram不能Parse Html会导致发送错误。在新的版本中 731a9d4 已经解决。更新代码或者docker就好了。
感谢
from noderssbot.
发现问题的原因是某些推文的标题中包含一些 html 中需要转移的字符。例如
<a href="https://twitter.com/YahooNewsYuru/status/1160149802388037632">㊗️🎉🎁おめでと~~㊗️🎉🎁<br>乃木坂46・齋藤飛鳥、21歳の誕生日! ファンから祝福の声が続々<...</a>
在 textNode 中出现了
<
,在 RSSHub 生成的 RSS 中没有转义。这样 Telegram 不能 Parse Html 会导致发送错误。在新的版本中 731a9d4 已经解决。更新代码或者 docker 就好了。感谢
谢谢大佬
from noderssbot.
Related Issues (20)
- Regexp improve
- 请问如何增加一个容器的暴露端口
- 求助,部署在fly.io上,数据无法保存,重启项目订阅源就都没了 HOT 1
- Repeated messages for new posts HOT 2
- Got request hang up when using cache
- Handle HTTP Cache header
- PostgreSQL connection error on Heroku workaround
- RSS url to someone's Diigo bookmark collection according to a certain tag can not be detected properly HOT 1
- Heroku error HOT 1
- Bot changes feed urls to wrong ones on its own HOT 6
- 建议 - 可以添加网页预览吗? HOT 2
- rssbot 更新提醒重复 HOT 3
- How to set it? Set the RSSBOT_TOKEN environment variable or set it in config.ts HOT 1
- critical error in docker (any image newer than 092ebb) HOT 1
- Use an alternative to got HOT 2
- 使用pm2,运行错误 HOT 3
- winston throw error
- 最新版本heroku部署报错 HOT 2
- 请问,如果想自行修改推送时的消息可以做到吗? HOT 5
- heroku收费,能部署到阿里云 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noderssbot.