RSSHub/lib/utils
Rongrong f3cf86cd72
fix(core/utils/wechat-mp): empty description when request blocked by WAF (#15294)
* fix(core/utils/wechat-mp): empty description when request blocked by WAF

Silently falling back to the fallback method would generate empty
description. Fixed by throwing an error when failed to extract
item_show_type from the page.

Some misc warnings are also added to make bug reporting easier.

Signed-off-by: Rongrong <i@rong.moe>

* fix(core/utils/wechat-mp): err msg for unknown page

Signed-off-by: Rongrong <i@rong.moe>

* test(core/utils/wechat-mp): fix coverage

Signed-off-by: Rongrong <i@rong.moe>

* fix(core/utils/wechat-mp): ESLint no-await-in-loop

Signed-off-by: Rongrong <i@rong.moe>

* fix(core/utils/wechat-mp): normalizeUrl: &amp; -> &

Signed-off-by: Rongrong <i@rong.moe>

* feat(core/utils/wechat-mp): do not prompt raising an issue when blocked
by WAF

Signed-off-by: Rongrong <i@rong.moe>

* feat(core/utils/wechat-mp): recognize deleted page

Signed-off-by: Rongrong <i@rong.moe>

* feat(core/utils/wechat-mp): log when error

Prevent errors from being completely suppressed if the caller catches
them.

Signed-off-by: Rongrong <i@rong.moe>

---------

Signed-off-by: Rongrong <i@rong.moe>
2024-04-22 02:19:33 +08:00
..
cache test: utils cache 2024-02-26 17:05:33 +08:00
proxy fix: proxy auth 2024-03-31 02:28:26 +08:00
request-rewriter fix(core): request-rewriter proxy ignore loopback address and puppeteer ws endpoint (#15293) 2024-04-19 23:58:43 +08:00
cache.test.ts feat: replace jest with vitest 2024-03-03 18:57:07 +08:00
common-config.test.ts test: fix common-config test 2024-03-27 14:49:43 +08:00
common-config.ts feat: use ofetch in parameter common-config wechat-mp 2024-03-27 14:40:42 +08:00
common-utils.test.ts feat: expose server URLs in the CLI (#14646) 2024-03-04 22:54:40 +08:00
common-utils.ts feat: expose server URLs in the CLI (#14646) 2024-03-04 22:54:40 +08:00
debug-info.ts feat(index): add back hot stats (#14664) 2024-03-05 13:55:39 +08:00
git-hash.ts fix(core): fix Git Hash unknown (#15041) 2024-04-02 01:28:35 +08:00
got-deprecated.ts feat: use ofetch imitate got 2024-03-23 02:03:55 +08:00
got.test.ts feat: add javdb session config and cookieJar to fakeGot (#14782) 2024-04-12 19:30:42 +08:00
got.ts feat: add javdb session config and cookieJar to fakeGot (#14782) 2024-04-12 19:30:42 +08:00
helpers.test.ts feat: replace jest with vitest 2024-03-03 18:57:07 +08:00
helpers.ts style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
logger.ts style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
md5.test.ts feat: replace jest with vitest 2024-03-03 18:57:07 +08:00
md5.ts
ofetch.test.ts test: add ofetch tests 2024-04-01 21:00:32 +08:00
ofetch.ts test: request headers 2024-03-30 18:29:38 +08:00
parse-date.test.ts feat: replace jest with vitest 2024-03-03 18:57:07 +08:00
parse-date.ts
puppeteer-utils.test.ts test: longger puppeteer timeout 2024-04-02 01:26:23 +08:00
puppeteer-utils.ts test: puppeteer-utils 2024-02-25 01:42:39 +08:00
puppeteer.test.ts test: longger puppeteer timeout 2024-04-02 01:26:23 +08:00
puppeteer.ts fix: remove require 2024-03-24 21:20:18 +08:00
rand-user-agent.test.ts test: request headers 2024-03-30 18:29:38 +08:00
rand-user-agent.ts style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
readable-social.ts feat: typescript utils 2024-02-25 01:48:56 +08:00
render.ts feat: support .rss3 output type (#15258) 2024-04-18 02:10:33 +08:00
request-rewriter.test.ts test: request-rewriter 2024-03-31 02:28:58 +08:00
rss-parser.test.ts test: rss-parser test 2024-03-27 16:18:37 +08:00
rss-parser.ts
timezone.test.ts feat: replace jest with vitest 2024-03-03 18:57:07 +08:00
timezone.ts style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
valid-host.test.ts feat: replace jest with vitest 2024-03-03 18:57:07 +08:00
valid-host.ts test: valid-host 2024-02-25 02:10:10 +08:00
wait.test.ts feat: replace jest with vitest 2024-03-03 18:57:07 +08:00
wait.ts
wechat-mp.test.ts fix(core/utils/wechat-mp): empty description when request blocked by WAF (#15294) 2024-04-22 02:19:33 +08:00
wechat-mp.ts fix(core/utils/wechat-mp): empty description when request blocked by WAF (#15294) 2024-04-22 02:19:33 +08:00